Updated shell scripts.
This commit is contained in:
parent
730deed7c0
commit
9794fab00f
4 changed files with 212 additions and 63 deletions
|
@ -1,17 +1,28 @@
|
|||
#!/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")
|
||||
|
||||
dir=$(dirname "$(readlink -f "$0")")
|
||||
cyan=$(tput setaf 6)
|
||||
normal=$(tput sgr0)
|
||||
|
||||
for ex in "java" "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: ${cyanlor}${ex}${normal}"
|
||||
echo "> Project: ${cyan}${ex}${normal}"
|
||||
./gradlew --console=plain --no-build-cache clean "$@" || exit 1
|
||||
echo
|
||||
(( i++ ))
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue