File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5757if git show-ref --tags --quiet --verify -- " refs/tags/$NEWVERSION1 "
5858 then
5959 echo " Version $NEWVERSION1 already exists as git tag. Exiting..." ;
60- # exit 1;
60+ exit 1;
6161 else
6262 echo " Git version does not exist. Let's proceed..."
6363fi
@@ -69,7 +69,7 @@ svn co $SVNURL $SVNPATH
6969if [ -d " $SVNPATH /tags/$NEWVERSION1 " ]
7070 then
7171 echo " Version $NEWVERSION1 already exists as SVN tag. Exiting..." ;
72- # exit 1;
72+ exit 1;
7373 else
7474 echo " SVN version does not exist. Let's proceed..."
7575fi
@@ -109,20 +109,20 @@ echo "Changing directory to SVN and committing to trunk"
109109cd $SVNPATH /trunk/
110110# Add all new files that are not set to be ignored
111111svn status | grep -v " ^.[ \t]*\..*" | grep " ^?" | awk ' {print $2}' | xargs svn add
112- # svn commit --username=$SVNUSER -m "$COMMITMSG"
112+ svn commit --username=$SVNUSER -m " $COMMITMSG "
113113
114114echo " Creating new SVN tag & committing it"
115115cd $SVNPATH
116116svn copy trunk/ tags/$NEWVERSION1 /
117117cd $SVNPATH /tags/$NEWVERSION1
118- # svn commit --username=$SVNUSER -m "Tagging version $NEWVERSION1"
118+ svn commit --username=$SVNUSER -m " Tagging version $NEWVERSION1 "
119119
120120echo " Tagging new version in git"
121121cd $GITPATH
122- # git tag -a "$NEWVERSION1" -m "Tagging version $NEWVERSION1"
123- # git push origin master --tags
122+ git tag -a " $NEWVERSION1 " -m " Tagging version $NEWVERSION1 "
123+ git push origin master --tags
124124
125125echo " Removing temporary directory $SVNPATH "
126- # rm -fr $SVNPATH/
126+ rm -fr $SVNPATH /
127127
128128echo " *** FIN ***"
You can’t perform that action at this time.
0 commit comments