r3-config/build_latest

28 lines
527 B
Plaintext
Raw Normal View History

2018-04-04 12:30:30 +02:00
#!/bin/bash
#for package in $()
for dir in /usr/share/cybafelo/*/
do
dir_short_name=${dir%*/}
dir_short_name=${dir_short_name##*/}
if [ -d "$dir/.git" ]; then
echo "===========================starting============================ $dir_short_name"
cd $dir
git branch
git pull
if [ -f "package.json" ]; then
npm install
fi
if [ -f "bower.js" ]; then
bower install
fi
if [ -f "gulpfile.js" ]; then
gulp build
fi
echo "=============================done=============================="
fi
done
r