X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/56fc9f70d385b20d431d9fa62ef4fd3941949717..307555eba3720362922cf25c15991b21f0e72dab:/packaging/patch-update diff --git a/packaging/patch-update b/packaging/patch-update index 46d9ff8f..f7a328c9 100755 --- a/packaging/patch-update +++ b/packaging/patch-update @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/perl # This script is used to turn one or more of the "patch/*" branches # into one or more diffs in the "patches" directory. Pass the option # --gen if you want generated files in the diffs. Pass the name of @@ -6,10 +6,12 @@ # diffs. use strict; +use warnings; 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( @@ -50,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; @@ -158,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;