Added copying of files to remote host + separated juser-ejb into addressbok-user...
[jprojects-scripts.git] / push-stick.sh
1 #!/bin/bash
2
3 . ./.jprojects.sh || exit 255
4
5 for ENTRY in ${LIST}; do
6         echo "$0: Pushing '${ENTRY}' ..."
7         cd "${ENTRY}" || exit 255
8         git push --all
9         if [ "$1" = "u" ]
10         then
11                 git push --all upstream
12         elif [ "$1" = "d" ]
13         then
14                 git push --all daedalus
15         fi
16         cd -
17 done