Improved the usage message.
authorWayne Davison <wayned@samba.org>
Mon, 4 Feb 2008 07:40:20 +0000 (23:40 -0800)
committerWayne Davison <wayned@samba.org>
Mon, 4 Feb 2008 07:40:20 +0000 (23:40 -0800)
support/patch-update

index 2d07356..502380d 100755 (executable)
@@ -104,7 +104,7 @@ if ($incl_generated_files) {
 }
 
 sleep 1 if $last_touch == time;
 }
 
 sleep 1 if $last_touch == time;
-system "git checkout master" and die $!;
+system "git checkout master" and exit 1;
 
 exit;
 
 
 exit;
 
@@ -181,7 +181,7 @@ sub usage
     die <<EOT;
 Usage: patch-update [OPTIONS]
 
     die <<EOT;
 Usage: patch-update [OPTIONS]
 
---gen[=DIR]   Inlcude generated files.
---skip-check  Skip the master-branch, clean-checkout check.
+--gen[=DIR]   Include generated files.  Optional dest DIR overrides "patches".
+--skip-check  Skip the check that ensures starting with a clean master branch.
 EOT
 }
 EOT
 }