[vlc-commits] commit: contrib: Old syntax should throw an error. (Pierre d'Herbemont )
git at videolan.org
git at videolan.org
Sun Oct 31 18:47:41 CET 2010
vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Sun Oct 31 18:26:28 2010 +0100| [0a55d75ffbcf53d9073a9c6bdbe4601de0b72c29] | committer: Pierre d'Herbemont
contrib: Old syntax should throw an error.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0a55d75ffbcf53d9073a9c6bdbe4601de0b72c29
---
extras/contrib/bootstrap | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/extras/contrib/bootstrap b/extras/contrib/bootstrap
index 002cb3f..ca0c785 100755
--- a/extras/contrib/bootstrap
+++ b/extras/contrib/bootstrap
@@ -61,7 +61,7 @@ info()
DISTRO=
BUILDDIR=.
-while getopts “ht:d:b:i:” OPTION
+while getopts "ht:d:b:i:" OPTION
do
case $OPTION in
h)
@@ -82,10 +82,16 @@ do
;;
?)
usage
- exit
+ exit 1
;;
esac
done
+shift $(($OPTIND - 1))
+
+if [ "x$1" != "x" ]; then
+ usage
+ exit 1
+fi
BUILD=`gcc -dumpmachine`
More information about the vlc-commits
mailing list