]> git.sesse.net Git - vlc/commitdiff
OSX build script: be verbose by default
authorRafaël Carré <funman@videolan.org>
Sat, 4 Feb 2012 00:47:00 +0000 (19:47 -0500)
committerRafaël Carré <funman@videolan.org>
Sat, 4 Feb 2012 00:47:00 +0000 (19:47 -0500)
Don't hide the needed steps as it confuses users reading the detailed instructions

extras/package/macosx/build.sh

index 72a1437d5a83adee3326a7ab22d17f74ed8ba3b9..230d8414a85b8ea37c9d9878f1afd764ac217067 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/sh
 set -e
+set -x
 
 info()
 {
@@ -20,7 +21,7 @@ Build vlc in the current directory
 
 OPTIONS:
    -h            Show some help
-   -v            Be verbose
+   -q            Be quiet
    -k <sdk>      Use the specified sdk (default: $SDK)
    -a <arch>     Use the specified arch (default: $ARCH)
 EOF
@@ -44,9 +45,9 @@ do
              usage
              exit 1
              ;;
-         v)
-             set -x
-             VERBOSE="yes"
+         q)
+             set +x
+             QUIET="yes"
          ;;
          a)
              ARCH=$OPTARG
@@ -67,9 +68,9 @@ fi
 # Various initialization
 #
 
-out="/dev/null"
-if [ "$VERBOSE" = "yes" ]; then
-    out="/dev/stdout"
+out="/dev/stdout"
+if [ "$QUIET" = "yes" ]; then
+    out="/dev/null"
 fi
 
 info "Building VLC for the Mac OS X"