diff options
Diffstat (limited to 'change_version.sh')
-rw-r--r-- | change_version.sh | 9 |
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 |