From: Jos I. Boumans Date: Thu, 4 Oct 2007 11:24:05 +0000 (+0200) Subject: Update add-package.pl X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1df59df4ebcab37761aa39263671effe1aa83486;p=p5sagit%2Fp5-mst-13.2.git Update add-package.pl From: "Jos I. Boumans" Message-Id: <9D8CA217-8B5B-487E-96A4-92D9047FE921@dwim.org> p4raw-id: //depot/perl@32030 --- diff --git a/Porting/add-package.pl b/Porting/add-package.pl index db4c531..b403bca 100644 --- a/Porting/add-package.pl +++ b/Porting/add-package.pl @@ -407,14 +407,20 @@ my @NewFiles; if( $RunDiff ) { my $diff = $Repo; $diff =~ s/$$/patch/; - print "Generating diff..." if $Verbose; - ### weird RV ;( my $master = basename( $MasterRepo ); my $repo = basename( $Repo ); my $chdir = dirname( $MasterRepo ); - system( "cd $chdir; diff -ruN $master $repo > $diff" ); + ### the .patch file is added by an rsync from the APC + ### but isn't actually in the p4 repo, so exclude it + my $cmd = "cd $chdir; diff -ruN --exclude=.patch $master $repo > $diff"; + + print "Running: '$cmd'\n"; + + print "Generating diff..." if $Verbose; + + system( $cmd ); #and die "Could not write diff to '$diff': $?"; die "Could not write diff to '$diff'" unless -e $diff && -s _;