aboutsummaryrefslogtreecommitdiffstats
path: root/change_version.sh
diff options
context:
space:
mode:
authorManolo Carrasco <manolo@apache.org>2011-05-05 11:55:37 +0000
committerManolo Carrasco <manolo@apache.org>2011-05-05 11:55:37 +0000
commit1402ed8bc263afa4c378ef532e931da8d593d967 (patch)
tree7a750f6426c1d70eb9779e38ae3dcb1e7c9455c9 /change_version.sh
parent1490dde14b6765f5acb93041333fe0449bfdded1 (diff)
downloadgwtquery-1402ed8bc263afa4c378ef532e931da8d593d967.tar.gz
gwtquery-1402ed8bc263afa4c378ef532e931da8d593d967.zip
preparing M3, and adding classifiers for 2.2.0 and 2.3.0
Diffstat (limited to 'change_version.sh')
-rw-r--r--change_version.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/change_version.sh b/change_version.sh
new file mode 100644
index 00000000..fa6f0bb7
--- /dev/null
+++ b/change_version.sh
@@ -0,0 +1,9 @@
+
+[ -z "$1" ] && exit
+
+for i in pom.xml */pom.xml
+do
+ V=`head -20 $i | grep "<version>" | head -1 | cut -d ">" -f2 | cut -d "<" -f1`
+ perl -pi -e "s;<version>$V</version>;<version>$1</version>;" $i
+ echo $V $i
+done