1# Abort on error 2set -e 3printf "\033[1;34mProcessing: ${1} ...\033[0m\n" 4pushd ${1} 5printf "\033[0;33m[Refresh]\033[0m\n" 6./gradlew refresh 7printf "\033[0;33m[Clean 1]\033[0m\n" 8find . -name build -exec rm -rf {} \; || true 9printf "\033[0;33m[EmitGradle]\033[0m\n" 10./gradlew emitGradle 11printf "\033[0;33m[Clean 2]\033[0m\n" 12find . -name build -exec rm -rf {} \; || true 13printf "\033[0;33m[EmitBrowseable]\033[0m\n" 14./gradlew emitBrowseable 15printf "\033[0;33m[Clean 3]\033[0m\n" 16find . -name build -exec rm -rf {} \; || true 17printf "\033[0;33m[EmitGradleZip]\033[0m\n" 18./gradlew emitGradleZip 19popd 20