[vlc-commits] OSX build script: be verbose by default

Rafaël Carré git at videolan.org
Sat Feb 4 15:18:59 CET 2012


vlc/vlc-2.0 | branch: master | Rafaël Carré <funman at videolan.org> | Fri Feb  3 19:47:00 2012 -0500| [cf8e77010c96eb3e423366a39006fff9ee441673] | committer: Jean-Baptiste Kempf

OSX build script: be verbose by default

Don't hide the needed steps as it confuses users reading the detailed instructions
(cherry picked from commit c6a45bd97c0e196ecd3b9c9d45db9ad21e98bb4d)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=cf8e77010c96eb3e423366a39006fff9ee441673
---

 extras/package/macosx/build.sh |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/extras/package/macosx/build.sh b/extras/package/macosx/build.sh
index 72a1437..230d841 100755
--- a/extras/package/macosx/build.sh
+++ b/extras/package/macosx/build.sh
@@ -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"



More information about the vlc-commits mailing list