From 5250c3bc20b0855f477b6b91457a745c105b3ac2 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sun, 12 Apr 2009 15:18:33 -0700 Subject: [PATCH] Changed the commands used to "make gen" without any stoppage. --- packaging/patch-update | 5 +++-- packaging/release-rsync | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packaging/patch-update b/packaging/patch-update index 30a29bce..f7a328c9 100755 --- a/packaging/patch-update +++ b/packaging/patch-update @@ -11,6 +11,7 @@ use Getopt::Long; my $patches_dir = 'patches'; my $tmp_dir = "patches.$$"; +my $make_gen_cmd = 'make -f prepare-source.mak conf && ./config.status && make gen'; &Getopt::Long::Configure('bundling'); &usage if !&GetOptions( @@ -51,7 +52,7 @@ close IN; if ($incl_generated_files) { die "'$tmp_dir' must not exist in the current directory.\n" if -e $tmp_dir; mkdir($tmp_dir, 0700) or die "Unable to mkdir($tmp_dir): $!\n"; - system "./config.status Makefile && make gen && rsync -a @extra_files $tmp_dir/master/" and exit 1; + system "$make_gen_cmd && rsync -a @extra_files $tmp_dir/master/" and exit 1; } our $last_touch = time; @@ -159,7 +160,7 @@ sub update_patch print OUT $description{$patch}, "\n"; if ($incl_generated_files) { - system "./config.status Makefile && make gen && rsync -a @extra_files $tmp_dir/$patch/" and exit 1; + system "$make_gen_cmd && rsync -a @extra_files $tmp_dir/$patch/" and exit 1; } $last_touch = time; diff --git a/packaging/release-rsync b/packaging/release-rsync index 71bb18e2..67318a1b 100755 --- a/packaging/release-rsync +++ b/packaging/release-rsync @@ -15,6 +15,7 @@ use Date::Format; my $dest = $ENV{HOME} . '/samba-rsync-ftp'; my $passfile = $ENV{HOME} . '/.rsyncpass'; my $path = $ENV{PATH}; +my $make_gen_cmd = 'make -f prepare-source.mak conf && ./config.status && make gen'; &Getopt::Long::Configure('bundling'); &usage if !&GetOptions( @@ -344,7 +345,7 @@ system "tar xzf $lasttar_file @_"; rename("rsync-$lastversion", 'a'); print "Creating $diff_file ...\n"; -system "./config.status Makefile; make gen; rsync -a @extra_files b/"; +system "$make_gen_cmd && rsync -a @extra_files b/" and exit 1; my $sed_script = 's:^((---|\+\+\+) [ab]/[^\t]+)\t.*:\1:'; system "(git diff v$lastversion v$version; diff -upN a b | sed -r '$sed_script') | gzip -9 >$diff_file"; system "rm -rf a"; -- 2.34.1