Skip to main content
summaryrefslogtreecommitdiffstats
blob: 221dd4bb753c2fc99e8e41791972067181736d63 (plain) (blame)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
#

DIR=$( dirname $0 )

find * -name pom.xml -print0 | xargs -0 grep "^<project>" | cut -f1 -d: | sort -u >/tmp/t1_$$.txt

for POM in $( cat /tmp/t1_$$.txt ); do
sed 's!<project>!<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">!g' ${POM} >/tmp/out_$$.txt
mv /tmp/out_$$.txt ${POM}
done


find * -name pom.xml -print0 | xargs -0 grep packaging.pom..packaging | cut -f1 -d: | sort -u >/tmp/t1_$$.txt
find * -name pom.xml -print0 | xargs -0 grep packaging.eclipse-repository..packaging | cut -f1 -d: | sort -u >>/tmp/t1_$$.txt

for POM in $( cat /tmp/t1_$$.txt ); do
xsltproc -o "${POM}.out" $DIR/fix-pom-version.xsl "${POM}"
mv "${POM}.out" "${POM}"
done

find * -name pom.xml | sort -u >/tmp/t1_$$.txt

for POM in $( cat /tmp/t1_$$.txt ); do
xsltproc -o "${POM}.out" $DIR/fix-pom-parent-version.xsl "${POM}"
mv "${POM}.out" "${POM}"
done

find * -name pom.xml -print0 | xargs -0 grep eclipse-plugin | cut -f1 -d: | sort -u >/tmp/t1_$$.txt
find * -name pom.xml -print0 | xargs -0 grep eclipse-feature | cut -f1 -d: | sort -u >>/tmp/t1_$$.txt
find * -name pom.xml -print0 | xargs -0 grep eclipse-test-plugin | cut -f1 -d: | sort -u >>/tmp/t1_$$.txt


for POM in $( cat /tmp/t1_$$.txt ); do
POM_DIR=$( dirname $POM )
cat >${POM_DIR}/forceQualifierUpdate.txt <<EOF
# To force a version qualifier update add the bug here
Bug 403237 - o.e.e4.tools cannot be build with "mvn clean install"
EOF
done

Back to the top