X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/4f282b0b9214e6b195b67b3ceb26c786747a9a7b..8e7f3107a4cffa09d85c40f9f6e7fe114b8b5861:/packaging/release-rsync diff --git a/packaging/release-rsync b/packaging/release-rsync index 957e8929..67318a1b 100755 --- a/packaging/release-rsync +++ b/packaging/release-rsync @@ -1,5 +1,6 @@ -#!/usr/bin/perl -w +#!/usr/bin/perl use strict; +use warnings; # This script expects the directory ~/samba-rsync-ftp to exist and to be a # copy of the /home/ftp/pub/rsync dir on samba.org. When the script is done, @@ -14,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( @@ -343,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";