]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
If "make gensend" fails, abort the script.
authorWayne Davison <wayned@samba.org>
Fri, 11 Jan 2008 21:20:14 +0000 (13:20 -0800)
committerWayne Davison <wayned@samba.org>
Fri, 11 Jan 2008 21:20:14 +0000 (13:20 -0800)
packaging/nightly-rsync

index 6ea48d44b73cd71f1a2ac7f8b3b5b04d9a2931d3..a046bdde8efd2d8b9288d2dc3357ac5cc196c776 100755 (executable)
@@ -41,6 +41,7 @@ if ($make_tar) {
     close IN;
     die "The checkout is not clean:\n", $status unless $status =~ /\nnothing to commit \(working directory clean\)/;
     die "The checkout is not on the master branch.\n" unless $status =~ /^# On branch master\n/;
+    system "make $gen_target" and die "make $gen_target failed!\n";
 
     my @extra_files;
     open(IN, '<', 'Makefile.in') or die "Couldn't open Makefile.in: $!\n";
@@ -56,7 +57,7 @@ if ($make_tar) {
     close IN;
 
     print "Creating $name.tar.gz\n";
-    system "make $gen_target; rsync -a @extra_files $name/";
+    system "rsync -a @extra_files $name/";
     system "git archive --format=tar --prefix=$name/ HEAD | tar xf -";
     system "support/git-set-file-times --prefix=$name/";
     system "fakeroot tar czf $dest/$name.tar.gz $name; rm -rf $name";