diff --git a/gulp b/gulp index 8df4086..1173d10 100755 --- a/gulp +++ b/gulp @@ -15,9 +15,8 @@ if [ "$1" == "watch" ]; then # Treat "gulp watch" as "gulp && gulp watch" $GULP elif [ "$1" == "all" ]; then + pushd . # 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[@]}" @@ -25,6 +24,9 @@ elif [ "$1" == "all" ]; then cd ../$r ./gulp done + popd + # Run "gulp" once inside the repo + $GULP exit 1 fi