-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathperform-release.sh
More file actions
32 lines (24 loc) · 933 Bytes
/
perform-release.sh
File metadata and controls
32 lines (24 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
if [ $# -ne 2 ]
then
echo "Usage: `basename $0` {tagVersion} {nextVersion}"
exit
fi
timestamp=`date -u +%Y%m%d%H%M`
tagVersion=$1
releaseVersion=$tagVersion-$timestamp
nextVersion=$2.qualifier
echo "tagVersion=$tagVersion"
echo "releaseVersion=$releaseVersion"
echo "nextVersion=$nextVersion"
echo -e "Are you sure (y/N)? \c "
read confirm
if [ "-"$confirm != "-y" ]; then
exit
fi
#mvn org.sonatype.tycho:tycho-versions-plugin:set-version -Dtycho.mode=maven -DnewVersion=$releaseVersion
#mvn clean install
#svn ci -m "prepare release eclipse-sonar-plugin-$tagVersion"
#svn copy https://svn.codehaus.org/sonar-ide/trunk/eclipse/ https://svn.codehaus.org/sonar-ide/tags/eclipse-sonar-plugin-$tagVersion -m "copy for tag eclipse-sonar-plugin-$tagVersion"
#mvn org.sonatype.tycho:tycho-versions-plugin:set-version -Dtycho.mode=maven -DnewVersion=$nextVersion
#svn ci -m "prepare for next development iteration"