summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJustin Davis <jrcd83@gmail.com>2011-10-07 23:21:30 +0200
committerJustin Davis <jrcd83@gmail.com>2011-10-07 23:21:30 +0200
commita2bee3dedfef3d54bd5de8d18a3f16a23f6927a4 (patch)
tree293ecbb0612a259fcb5c54720cb6e52c8f9f12d6 /bin
parent4d348ea123d6bed169d3f7d458398b173800cbb5 (diff)
downloadgenpkg-a2bee3dedfef3d54bd5de8d18a3f16a23f6927a4.tar.gz
genpkg-a2bee3dedfef3d54bd5de8d18a3f16a23f6927a4.tar.xz
Tweak perl-dist. Add !emptydirs option.
Add -f flag to rm -r pkg/$pkg/src.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/metas/perl.d/perl-dist3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/metas/perl.d/perl-dist b/bin/metas/perl.d/perl-dist
index e4af02d..5519fea 100755
--- a/bin/metas/perl.d/perl-dist
+++ b/bin/metas/perl.d/perl-dist
@@ -345,6 +345,7 @@ sub main
# Since this is a perl distribution, use the perl-pkg template.
printf("template\nperl-pkg %s\n\n", (-f "$dir/Build.PL" ? "MB" : "MM"));
+ print("options\n!emptydirs\n\n");
printmeta(\%pbvars);
return 0;
@@ -357,7 +358,7 @@ sub chsrcdir
my ($srcdir, $distfile) = @_;
if (-e $srcdir) {
- system("rm", "-r", $srcdir) == 0 or die "failed to rm $srcdir\n";
+ system("rm", "-fr", $srcdir) == 0 or die "failed to rm $srcdir\n";
}
mkdir $srcdir or die "mkdir $srcdir: $!";
chdir($srcdir) or die "chdir $srcdir: $!";