28 lines
527 B
Plaintext
28 lines
527 B
Plaintext
|
#!/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
|