From: Jos I. Boumans Date: Mon, 19 Jan 2009 16:10:02 +0000 (+0100) Subject: add-package fix X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ab06b35309b1cfdf95be244971d777b58132c174;p=p5sagit%2Fp5-mst-13.2.git 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. --- diff --git a/Porting/add-package.pl b/Porting/add-package.pl index ba0dbfa..ded907d 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