5 trunkRoot
=svn
+ssh://mono-cvs.ximian.com
/source
/trunk
/monodevelop
6 branchesRoot
=svn
+ssh://mono-cvs.ximian.com
/source
/branches
/monodevelop
7 tagsRoot
=svn
+ssh://mono-cvs.ximian.com
/source
/tags
/monodevelop
11 destRoot
=$branchesRoot
17 echo "Usage : mdbrach [--profile=PROFILE] versionNumber"
19 echo "Creates a new branch of MonoDevelop and the extras add-ins included"
20 echo "in the specified profile (which is 'stable' by default)."
25 test -z "$1" && return 0
26 for c
in `ls ../profiles`; do
27 if [ "$c" = "$1" ]; then
36 for p
in `sed -e /#/d -e 's/ /,/g' < ../profiles/$profile` ; do
37 path
=`echo $p | cut -d ',' -f 1`
38 packages
="$packages $path"
43 while test x
$1 != x
; do
46 prof
=`echo $1 | sed 's/--profile=//'`
47 validate_profile
"$prof"
51 echo "Invalid profile name - $conf"
59 validate_profile
"$prof"
63 echo "Invalid profile name - $conf"
70 sourceRoot
=$branchesRoot
89 if [ $destRoot = $tagsRoot ]; then
90 echo "The following tags will be created:"
92 echo "The following branches will be created:"
96 for p
in $packages; do
97 echo "$destRoot/$p/$version"
102 for p
in $packages; do
103 echo "$sourceRoot/$p$srcVersion"
106 if [ $destRoot = $tagsRoot ]; then
107 echo "Created $version tag." > $MSG
109 echo "Created $version branch." > $MSG
113 echo "Commit message:"
120 read -a RESPONSE
-p"Would you like to continue (Y)es/(N)o/(E)dit Message: "
127 "Y" |
"y" |
"yes" |
"Yes")
130 for p
in $packages; do
131 echo "svn cp -F $MSG $sourceRoot/$p$srcVersion $destRoot/$p/$version"
132 svn
cp -F $MSG $sourceRoot/$p$srcVersion $destRoot/$p/$version
138 "N" |
"n" |
"no" |
"No")
144 "E" |
"e" |
"ed" |
"Ed" |
"Edit" |
"edit")