beta.r3js.org
-=yb4f310 2017-04-09 12:22:40 +02:00
parent f550182b0f
commit b0ea9f4f46
2 changed files with 30 additions and 0 deletions

14
status_all Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
#for package in $()
for dir in /usr/share/gamewheel/*/
do
dir_short_name=${dir%*/}
dir_short_name=${dir_short_name##*/}
if [ -d "$dir/.git" ]; then
cd $dir
echo `echo "$dir_short_name: " && git fetch && git status | grep "\(clean\|Untracked files\|Changes not staged\|ahead.*commit\|behind.*commit\)" | sed "s/^.*\(clean\|Untracked files\|Changes not staged\|ahead.*commit\|behind.*commit\).*/\l\1 |/" | grep --color=always "\(changes not staged\|ahead.*commit\|clean\|untracked files\|behind.*commit\)"`
fi
done

16
update_all Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
#for package in $()
for dir in /usr/share/gamewheel/*/
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
echo "=============================done=============================="
fi
done