]> git.sesse.net Git - vlc/commitdiff
More exact documentation and small fix
authorChristophe Mutricy <xtophe@videolan.org>
Mon, 14 May 2007 12:25:18 +0000 (12:25 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Mon, 14 May 2007 12:25:18 +0000 (12:25 +0000)
extras/contrib/bootstrap

index 3ae923a6d861106dcc1f7f6e1425a8f929afa63a..05832b83515ebb53dae157fcf2c5a5b0e6e8495a 100755 (executable)
@@ -24,8 +24,8 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
 # ***************************************************************************
 
-if test "$#" -gt "2"; then
-  echo "Usage: $0 <host> [distro]" >&2
+if test "$#" -gt "2" -o $1 = "-h" -o $1 = "--help" ; then
+  echo "Usage: $0 [host [distro]]" >&2
   echo "  Prepare config.mak and distro.mak file." >&2
   exit 1
 fi
@@ -36,7 +36,7 @@ set -e
 set -x
 
 BUILD=`gcc -dumpmachine`
-if test "$#" = "1"; then
+if test "$#" -ge "1"; then
   HOST="$1"
 else
   HOST="$BUILD"