What's cooking (2013/03 #03)
[alt-git.git] / pushall
blobc4d6e1de4050b9a87c1427f88d96285e8f228614
1 #!/bin/sh
3 case "$#" in
4 0)
5 tagged=
6 for branch in maint master
7 do
8 t=$(git describe --exact-match $branch 2>/dev/null) &&
9 tagged="$tagged$t "
10 done
11 if test -n "$tagged"
12 then
13 "$0" $tagged
15 esac
17 for remote in ko repo gph github2 sfjp sf.net
19 printf "%s: " "$remote"
20 git push "$remote" "$@" || exit $?
21 done
23 case "$#,$*" in
24 0,* | 1,-n)
25 printf "github mirror: "
26 git push github "$@" || exit $?
27 for topic in htmldocs manpages
29 printf "%s: " "$topic"
30 ( cd ../git-$topic.git && git push "$@") || exit
31 done
33 esac