[vlc-commits] Mac build script: add clean contrib option
Felix Paul Kühne
git at videolan.org
Sat Jul 1 11:28:16 CEST 2017
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Jul 14 15:36:20 2016 +0200| [564d4416436e2ac7f06dde5ead37e441e64bd5ca] | committer: Felix Paul Kühne
Mac build script: add clean contrib option
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=564d4416436e2ac7f06dde5ead37e441e64bd5ca
---
extras/package/macosx/build.sh | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/extras/package/macosx/build.sh b/extras/package/macosx/build.sh
index 57d1408dcc..f8cdfc7df4 100755
--- a/extras/package/macosx/build.sh
+++ b/extras/package/macosx/build.sh
@@ -25,6 +25,7 @@ OPTIONS:
-h Show some help
-q Be quiet
-r Rebuild everything (tools, contribs, vlc)
+ -c Recompile contribs from sources
-k <sdk> Use the specified sdk (default: $SDKROOT)
-a <arch> Use the specified arch (default: $ARCH)
EOF
@@ -41,7 +42,7 @@ spopd()
popd > /dev/null
}
-while getopts "hvrk:a:" OPTION
+while getopts "hvrck:a:" OPTION
do
case $OPTION in
h)
@@ -55,6 +56,9 @@ do
r)
REBUILD="yes"
;;
+ c)
+ CONTRIBFROMSOURCE="yes"
+ ;;
a)
ARCH=$OPTARG
;;
@@ -123,9 +127,14 @@ mkdir -p contrib-$TRIPLET && cd contrib-$TRIPLET
if [ "$REBUILD" = "yes" ]; then
make clean
fi
+if [ "$CONTRIBFROMSOURCE" = "yes" ]; then
+ make fetch
+ make
+else
if [ ! -e "../$TRIPLET" ]; then
make prebuilt > $out
fi
+fi
spopd
More information about the vlc-commits
mailing list