Introducing "./gulp all" all command

It automates running the ./gulp command in all blender-cloud
related repos. Useful when setting up a project for the first time.
This commit is contained in:
2018-06-22 15:39:24 +02:00
parent 8c6fa1e423
commit fb2f245f1e

12
gulp
View File

@@ -14,6 +14,18 @@ function install() {
if [ "$1" == "watch" ]; then if [ "$1" == "watch" ]; then
# Treat "gulp watch" as "gulp && gulp watch" # Treat "gulp watch" as "gulp && gulp watch"
$GULP $GULP
elif [ "$1" == "all" ]; then
# This is useful when building the Blender Cloud project for the first time.
# Run "gulp" once inside the repo
$GULP
# Run ./gulp in all depending projects (pillar, attract, flamenco, pillar-svnman)
declare -a repos=("pillar" "attract" "flamenco" "pillar-svnman")
for r in "${repos[@]}"
do
cd ../$r
./gulp
done
exit 1
fi fi
exec $GULP "$@" exec $GULP "$@"