From fb2f245f1e789d39bcbf5bb28ab9fc5cc7e80744 Mon Sep 17 00:00:00 2001 From: Francesco Siddi Date: Fri, 22 Jun 2018 15:39:24 +0200 Subject: [PATCH] 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. --- gulp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gulp b/gulp index 093ad60..8df4086 100755 --- a/gulp +++ b/gulp @@ -14,6 +14,18 @@ function install() { if [ "$1" == "watch" ]; then # Treat "gulp watch" as "gulp && gulp watch" $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 exec $GULP "$@"