]> git.saurik.com Git - wxWidgets.git/blobdiff - distrib/msw/makerpm
compilation fix
[wxWidgets.git] / distrib / msw / makerpm
index 6071d938deb70fbb152e71eb652875cc2d1f590b..0f222f246e0cc9ea7a90b222205415072013ca40 100755 (executable)
@@ -188,25 +188,6 @@ dospinwxx11()
   echo Now try the RPMs with rpm -i.
 }
 
-init=""
-if [ "$1" = "" ]
-then
-  echo Usage: makerpm wx-dir output-dir version
-  exit
-fi
-
-if [ "$2" = "" ]
-then
-  echo Usage: makerpm wx-dir output-dir version
-  exit
-fi
-
-if [ "$3" = "" ]
-then
-  echo Usage: makerpm wx-dir output-dir version
-  exit
-fi
-
 PROGNAME=$0
 WXSRC=$1
 WXDEST=$2
@@ -232,6 +213,25 @@ usage()
     exit 1
 }
 
+init=""
+if [ "$1" = "" ]
+then
+  usage
+  exit
+fi
+
+if [ "$2" = "" ]
+then
+  usage
+  exit
+fi
+
+if [ "$3" = "" ]
+then
+  usage
+  exit
+fi
+
 # Process command line options.
 shift 3
 for i in "$@"; do