bump-version.sh 469 Bytes
Newer Older
Peter van 't Hof's avatar
Peter van 't Hof committed
1
#!/bin/bash
Peter van 't Hof's avatar
Peter van 't Hof committed
2 3 4 5 6 7
#
# Copyright (c) 2014 Leiden University Medical Center - Sequencing Analysis Support Core <sasc@lumc.nl>
# @author Peter van 't Hof <p.j.van_t_hof@lumc.nl>
# 
# Script used to change version in pom files for Biopet project
# 
Peter van 't Hof's avatar
Peter van 't Hof committed
8 9 10

DIR=`readlink -f \`dirname $0\``

Peter van 't Hof's avatar
Peter van 't Hof committed
11 12 13 14 15
if [ ! $1 ] ; then
    echo "usage: "`basename $0`" <version>"
    exit 1
fi

16 17 18 19 20
for POM in `find $DIR -name "pom.xml"`
do
	mvn -f $POM versions:set -DnewVersion=$1 -DgenerateBackupPoms=false
done