#!/usr/local/bin/bash if (test "$1" = "" ) then echo "The repository-name hasn't been setted yet. Usage:" echo "make-merge.sh " exit -1 fi if (test "$2" = "" ) then echo "The branch name hasn't been setted yet. Usage:" echo "make-merge.sh " exit -2 fi if (test "$3" = "" ) then echo "The commit or merge command hasn't been setted yet. Usage:" echo "make-merge.sh " exit -3 fi cd branches/$2/ if ( test "$3" = "merge") then svn merge --reintegrate svn://javaforum.hu/$1/trunk/ fi if ( test "$3" = "commit") then svn ci -m "The changes of the '/trunk' has been merged into the '/branches/$2/'." . fi