blob: fa6f0bb7ccc623b7917cbf0850fefd1983143a2a (
plain)
1
2
3
4
5
6
7
8
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
|