From: Julian Smart Date: Fri, 6 Jun 2003 10:46:59 +0000 (+0000) Subject: Fixed usage X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3885ccc54a7eb95bde8d4c53ad6dfe026f26ee83 Fixed usage git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20962 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/distrib/msw/makerpm b/distrib/msw/makerpm index 6071d938de..0f222f246e 100755 --- a/distrib/msw/makerpm +++ b/distrib/msw/makerpm @@ -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