diff options
author | Jos I. Boumans <jos@dwim.org> | 2009-01-19 17:10:02 +0100 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2009-01-19 17:10:02 +0100 |
commit | ab06b35309b1cfdf95be244971d777b58132c174 (patch) | |
tree | 0dcfd3c55192915a0d29e5d01474b3f9688c4ac7 /Porting/add-package.pl | |
parent | b8a4246ccaa9e3e22992d50fe53e3d39cea09636 (diff) | |
download | perl-ab06b35309b1cfdf95be244971d777b58132c174.tar.gz |
add-package fix
David patched add-package to support git, but unfortunately introduced
a portability issue for 'cp'; the --archive option isn't supported on
OSX. So, the attached patch changes --archive to it's most equal single
character options that are portable.
Diffstat (limited to 'Porting/add-package.pl')
-rw-r--r-- | Porting/add-package.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Porting/add-package.pl b/Porting/add-package.pl index ba0dbfa09a..ded907dd41 100644 --- a/Porting/add-package.pl +++ b/Porting/add-package.pl @@ -34,7 +34,9 @@ if ( $NoBranch ) { my $RepoCopy = "$Repo-$BranchName"; print "Copying repository to $RepoCopy ..." if $Verbose; - system( "cp --archive -f $Repo $RepoCopy" ) + ### --archive == -dPpR, but --archive is not portable, and neither + ### is -d, so settling for -PpR + system( "cp -PpR -f $Repo $RepoCopy" ) and die "Copying master repo to $RepoCopy failed: $?"; ### Going forward, use the copy in place of the original repo |