3 # Fetches remote svn updates to local repository,
4 # and then merge these update into local master branch and trunk branch.
5 # Finally, push all local changes to GitHub.
7 # Exit immediately if a command exits with a non-zero status.
8 # Print commands and their arguments as they are executed.
12 if [ "$1" = "--proxy" ]; then
16 if [ -z "$GFWLIST_HOME" ]; then
17 GFWLIST_HOME
=/Users
/zhouji
/projects
/autoproxy-gfwlist
24 function fetch_svn_updates
() {
30 proxychains4 git svn fetch
35 if [ $ret -eq 0 ]; then
37 elif [ $i -lt $max_retry ]; then
51 ssh -D 7070 -f -p 22 gocalfco@gocalf.com
sleep $proxy_duration
55 if fetch_svn_updates
; then
62 git merge origin
/trunk
-m 'auto merge svn trunk branch'
65 git merge
--ff-only origin
/trunk