[Android] Add --init argument to compile.sh
Geoffrey Métais
git at videolan.org
Tue Dec 18 17:01:43 CET 2018
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Dec 18 16:55:08 2018 +0100| [34a38559e0f8fcfca3420a0e14b7805891958703] | committer: Geoffrey Métais
Add --init argument to compile.sh
This will setup gradle and its config without any further work
> https://code.videolan.org/videolan/vlc-android/commit/34a38559e0f8fcfca3420a0e14b7805891958703
---
compile.sh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/compile.sh b/compile.sh
index 8c1ced948..34526142e 100755
--- a/compile.sh
+++ b/compile.sh
@@ -75,6 +75,9 @@ while [ $# -gt 0 ]; do
RELEASE=1
PUBLISH=1
;;
+ --init)
+ GRADLE_SETUP=1
+ ;;
*)
diagnostic "$0: Invalid option '$1'."
diagnostic "$0: Try --help for more information."
@@ -232,6 +235,9 @@ if [ ! -d "$ANDROID_SDK/licenses" ]; then
echo "84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_SDK/licenses/android-sdk-preview-license"
fi
+if [ "$GRADLE_SETUP = 1" ]; then
+ exit 0
+fi
####################
# Fetch VLC source #
####################
More information about the Android
mailing list