Skip to content

Commit 3f35544

Browse files
committed
Updated deploy script
1 parent 6be9350 commit 3f35544

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

deploy.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ fi
5757
if 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..."
6363
fi
@@ -69,7 +69,7 @@ svn co $SVNURL $SVNPATH
6969
if [ -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..."
7575
fi
@@ -109,20 +109,20 @@ echo "Changing directory to SVN and committing to trunk"
109109
cd $SVNPATH/trunk/
110110
# Add all new files that are not set to be ignored
111111
svn 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

114114
echo "Creating new SVN tag & committing it"
115115
cd $SVNPATH
116116
svn copy trunk/ tags/$NEWVERSION1/
117117
cd $SVNPATH/tags/$NEWVERSION1
118-
#svn commit --username=$SVNUSER -m "Tagging version $NEWVERSION1"
118+
svn commit --username=$SVNUSER -m "Tagging version $NEWVERSION1"
119119

120120
echo "Tagging new version in git"
121121
cd $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

125125
echo "Removing temporary directory $SVNPATH"
126-
#rm -fr $SVNPATH/
126+
rm -fr $SVNPATH/
127127

128128
echo "*** FIN ***"

0 commit comments

Comments
 (0)