diff --git a/scripts/update-all.sh b/scripts/update-all.sh new file mode 100755 index 0000000..cac0791 --- /dev/null +++ b/scripts/update-all.sh @@ -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