diff options
author | Justin Davis <jrcd83@gmail.com> | 2011-10-07 23:21:30 +0200 |
---|---|---|
committer | Justin Davis <jrcd83@gmail.com> | 2011-10-07 23:21:30 +0200 |
commit | a2bee3dedfef3d54bd5de8d18a3f16a23f6927a4 (patch) | |
tree | 293ecbb0612a259fcb5c54720cb6e52c8f9f12d6 /bin | |
parent | 4d348ea123d6bed169d3f7d458398b173800cbb5 (diff) | |
download | genpkg-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-x | bin/metas/perl.d/perl-dist | 3 |
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: $!"; |