Added update wrappers and preflight check shell scripts.

This commit is contained in:
Erik C. Thauvin 2019-04-05 00:00:24 -07:00
parent 76ffc77ada
commit e2f55f33e2
3 changed files with 228 additions and 6 deletions

View file

@ -1,17 +1,30 @@
#!/bin/bash
if [ $# -eq 0 ]; then
echo "Usage: $0 <arg> [...]"
echo "Usage: $0 <arg ...>"
exit 1
fi
# set the examples directories
declare -a examples=(
"java"
"kotlin"
"annotation-processor/java"
"annotation-processor/kotlin")
dir=$(dirname "$(readlink -f "$0")")
color=$(tput setaf 6)
cyan=$(tput setaf 6)
normal=$(tput sgr0)
for ex in "java" "kotlin" "annotation-processor/java" "annotation-processor/kotlin"; do
i=0
for ex in "${examples[@]}"; do
if [ $i -ne 0 ]
then
read -p "Press [Enter] key to continue..."
clear
fi
cd "$dir/$ex" || exit 1
echo "> Project: ${color}${ex}${normal}"
./gradlew clean "$@" --console=plain --no-build-cache || exit 1
echo
echo "> Project: ${cyan}${ex}${normal}"
./gradlew --console=plain --no-build-cache clean "$@" || exit 1
(( i++ ))
done