Blame SOURCES/netpbm-ppmfadeusage.patch

780b59
diff -urNp old/editor/ppmfade new/editor/ppmfade
780b59
--- old/editor/ppmfade	2017-11-01 11:47:49.869611402 +0100
780b59
+++ new/editor/ppmfade	2017-11-01 11:53:25.524973342 +0100
780b59
@@ -84,7 +84,7 @@ for ($n = 0; $n < @ARGV; $n++) {
1ab173
         if (-e $first_file) {
1ab173
         } else {
1ab173
             print "I can't find first file '$first_file'\n";
1ab173
-            exit 20;
1ab173
+            exit 1;
1ab173
         }
1ab173
     } elsif ($ARGV[$n] eq "-l") {
1ab173
         $n++;
780b59
@@ -92,7 +92,7 @@ for ($n = 0; $n < @ARGV; $n++) {
1ab173
         if (-e $last_file) {
1ab173
         } else {
1ab173
             print "I can't find last file '$last_file'\n";
1ab173
-            exit 20;
1ab173
+            exit 1;
1ab173
         }
1ab173
     } elsif ($ARGV[$n] eq "-base") {
1ab173
         $n++;
780b59
@@ -113,9 +113,12 @@ for ($n = 0; $n < @ARGV; $n++) {
1ab173
         $mode = $BLOCK;
1ab173
     } elsif ("$ARGV[$n]" eq "-mix") {
1ab173
         $mode = $MIX;
1ab173
+    } elsif ($ARGV[$n] eq "-help" || $ARGV[$n] eq "--help" || $ARGV[$n] eq "-h") {
1ab173
+        print "ppmfade: Use 'man ppmfade' for help.\n";
1ab173
+        exit 1;
1ab173
     } else {
1ab173
         print "Unknown argument: $ARGV[$n]\n";
1ab173
-        exit 100;
1ab173
+        exit 1;
1ab173
     } 
1ab173
 }
1ab173
 #
780b59
@@ -134,18 +137,18 @@ if ($first_file ne "undefined") {
1ab173
         $width = $1; $height = $2;
1ab173
     } else {
1ab173
         print("Unrecognized results from pnmfile on $first_file.\n");
1ab173
-        exit(50);
1ab173
+        exit 1;
1ab173
     }
1ab173
 } elsif ($last_file ne "undefined") {
1ab173
     if ((`pnmfile $last_file` =~ m{\b(\d+)\sby\s(\d+)} )) { 
1ab173
         $width = $1; $height = $2;
1ab173
     } else {
1ab173
         print("Unrecognized results from pnmfile on $first_file.\n");
1ab173
-        exit(50);
1ab173
+        exit 1;
1ab173
     }
1ab173
 } else {
1ab173
     print("ppmfade:  You must specify -f or -l (or both)\n");
1ab173
-    exit(90);
1ab173
+    exit 1;
1ab173
 }
1ab173
 
1ab173
 print("Frames are " . $width . "W x " . $height . "H\n");