Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2008-04-01 18:22:43 -0400
committerspingel2008-04-01 18:22:43 -0400
commitc380e520c5277c1b15b73b4fcf76a258039021d5 (patch)
tree5e01da911945a50ce0750deb35948fb950b274e5
parent34032a15bb14c9d3108bc8e612b959affdc67409 (diff)
downloadorg.eclipse.mylyn-c380e520c5277c1b15b73b4fcf76a258039021d5.tar.gz
org.eclipse.mylyn-c380e520c5277c1b15b73b4fcf76a258039021d5.tar.xz
org.eclipse.mylyn-c380e520c5277c1b15b73b4fcf76a258039021d5.zip
NEW - bug 221939: manage branchesMerged_e_3_3_m_2_x
https://bugs.eclipse.org/bugs/show_bug.cgi?id=221939
-rw-r--r--org.eclipse.mylyn.releng/update-version.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.releng/update-version.sh b/org.eclipse.mylyn.releng/update-version.sh
index 3ee98f5..a78bb15 100644
--- a/org.eclipse.mylyn.releng/update-version.sh
+++ b/org.eclipse.mylyn.releng/update-version.sh
@@ -2,14 +2,20 @@
if [ $# -eq 0 ]
then
- echo "usage: update-version.sh [new version]"
+ echo "usage: update-version.sh [old version] [new version]"
exit 1
fi
ROOT=$(cd $(dirname $0); pwd)/..
-OLD_VERSION=`grep Bundle-Version $ROOT/org.eclipse.mylyn/META-INF/MANIFEST.MF | sed 's/Bundle-Version: //' | sed 's/.qualifier//'`
-NEW_VERSION=$1
+if [ $# -eq 0 ]
+then
+ OLD_VERSION=`grep Bundle-Version $ROOT/org.eclipse.mylyn/META-INF/MANIFEST.MF | sed 's/Bundle-Version: //' | sed 's/.qualifier//'`
+ NEW_VERSION=$1
+else
+ OLD_VERSION=$1
+ NEW_VERSION=$2
+fi
echo renaming version from $OLD_VERSION to $NEW_VERSION

Back to the top