Improved some scripts and added new mailer projects
[jprojects-scripts.git] / pull-stick.sh
1 #!/bin/bash
2
3 . ./.jprojects.sh || exit 255
4
5 for ENTRY in ${LIST}; do
6         cd "${ENTRY}" || exit 255
7
8         if [ "$1" = "c" ]
9         then
10                 echo "$0: Checkout '${ENTRY}' ..."
11                 git checkout -- .
12         fi
13
14         echo "$0: Pulling '${ENTRY}' ..."
15         git pull || exit 255
16         echo "$0: Rebasing '${ENTRY}' ..."
17         git rebase origin/master || exit 255
18         cd -
19 done