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:
12
gulp
12
gulp
@@ -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 "$@"
|
||||||
|
Reference in New Issue
Block a user