Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/xsl/xparentVersions.sh')
-rwxr-xr-xscripts/xsl/xparentVersions.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/xsl/xparentVersions.sh b/scripts/xsl/xparentVersions.sh
index 041d2f84d..221dd4bb7 100755
--- a/scripts/xsl/xparentVersions.sh
+++ b/scripts/xsl/xparentVersions.sh
@@ -3,7 +3,16 @@
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}"
@@ -17,3 +26,16 @@ 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