Jos I. Boumans [Wed, 25 Feb 2009 08:31:02 +0000 (09:31 +0100)]
Sometimes, using find, add-package.pl will construct filenames with 2
consecutive slashes, ie:
Package-Name/bin//script.pl
As this literal string isn't in the MANIFEST yet, it'll be added
erroneously. The below patch fixes this.
? system( "cp -fR $CPV t $TopDir" ) && die "Copy of t/ failed: $?"
: warn "No t/ directory found\n";
- @TestFiles = map { chomp; s|^$TopDirRe||; $_ }
+ @TestFiles = map { chomp; s|^$TopDirRe||; s|//|/|g; $_ }
### should we get rid of this file?
grep { $ExcludeRe && $_ =~ $ExcludeRe
? do { warn "Removing $_\n";
system($CopyCmd) && die "Copy of $BinDir failed: $?";
- @BinFiles = map { chomp; s|^$TopDirRe||; $_ }
+ @BinFiles = map { chomp; s|^$TopDirRe||; s|//|/|g; $_ }
### should we get rid of this file?
grep { $ExcludeRe && $_ =~ $ExcludeRe
? do { warn "Removing $_\n";