Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Webster2013-05-07 12:20:07 -0400
committerPaul Webster2013-05-08 07:21:40 -0400
commitab3c59959296060e845d7ef83047db78029592e5 (patch)
treebc944cd2516de5291937417adc4bdd231c530d01
parentc4972b60cfebd9f6795948d7643a693875e4a097 (diff)
downloadeclipse.platform.releng.aggregator-ab3c59959296060e845d7ef83047db78029592e5.tar.gz
eclipse.platform.releng.aggregator-ab3c59959296060e845d7ef83047db78029592e5.tar.xz
eclipse.platform.releng.aggregator-ab3c59959296060e845d7ef83047db78029592e5.zip
update example xsl modifying script
-rwxr-xr-xscripts/xsl/xparentVersions.sh16
1 files changed, 10 insertions, 6 deletions
diff --git a/scripts/xsl/xparentVersions.sh b/scripts/xsl/xparentVersions.sh
index 221dd4bb..5a0d3adc 100755
--- a/scripts/xsl/xparentVersions.sh
+++ b/scripts/xsl/xparentVersions.sh
@@ -2,6 +2,10 @@
#
DIR=$( dirname $0 )
+NEW_VER=0.14.0-SNAPSHOT
+if [ $# -eq 1 ]; then
+ NEW_VER="$1"
+fi
find * -name pom.xml -print0 | xargs -0 grep "^<project>" | cut -f1 -d: | sort -u >/tmp/t1_$$.txt
@@ -15,27 +19,27 @@ find * -name pom.xml -print0 | xargs -0 grep packaging.pom..packaging | cut -f1
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}"
+xsltproc --stringparam new-version "$NEW_VER" -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}"
+xsltproc --stringparam new-version "$NEW_VER" -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
+find * -name pom.xml -print0 | xargs -0 grep packaging.eclipse-plugin | cut -f1 -d: | sort -u >/tmp/t1_$$.txt
+find * -name pom.xml -print0 | xargs -0 grep packaging.eclipse-feature | cut -f1 -d: | sort -u >>/tmp/t1_$$.txt
+find * -name pom.xml -print0 | xargs -0 grep packaging.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"
+Bug 403352 - Update all parent versions to match our build stream
EOF
done

Back to the top