blob: 4f785c441201550df34a78005b54d6b0617d1d04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/bash
#set -e
#set -v
## go to location with clone GIT repositories
cd $(dirname $(dirname $(dirname $0)))
VERSION=$1
## handle POM files with no parent
for file in $(find dcae-* -name pom.xml); do
if [ "$(grep -c '<parent>' $file)" == "0" ]; then
( cd $(dirname $file) ; mvn versions:set versions:commit -DnewVersion=$VERSION -DprocessDependencies=false )
fi
done
find . -name pom.xml.versionsBackup -delete
## handle complete build pom
FILE=dcae-org.openecomp.dcae.controller/pom-complete-build.xml
sed -i "sX<version>.*</version><!--VERSION-->X<version>$VERSION</version><!--VERSION-->X" $FILE
|