scripts: Add update-all script

remotes/origin/master
Guillaume Lesniak 2016-04-27 16:59:05 +02:00
parent d3fd700fdf
commit 7b6cb9a03d
1 changed files with 26 additions and 0 deletions

26
scripts/update-all.sh Executable file
View File

@ -0,0 +1,26 @@
#!/bin/bash
pull_if_exists() {
if [ -d $1 ]; then
pushd $1
git pull
popd
fi
}
git pull
php composer.phar update
pull_if_exists module/MonarcCore
pull_if_exists module/MonarcBO
pull_if_exists node_modules/ng_backoffice
if [ -d node_modules/ng_backoffice ]; then
cd node_modules/ng_backoffice
npm install
cd ../..
fi
./scripts/link_modules_resources.sh