Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'production/miscToolsAndNotes/xslUtilityScripts/groupId.sh')
-rwxr-xr-xproduction/miscToolsAndNotes/xslUtilityScripts/groupId.sh47
1 files changed, 47 insertions, 0 deletions
diff --git a/production/miscToolsAndNotes/xslUtilityScripts/groupId.sh b/production/miscToolsAndNotes/xslUtilityScripts/groupId.sh
new file mode 100755
index 000000000..cdd08a6e9
--- /dev/null
+++ b/production/miscToolsAndNotes/xslUtilityScripts/groupId.sh
@@ -0,0 +1,47 @@
+#!/bin/bash
+
+ECLIPSE=/opt/local/e4-self/R421/eclipse/eclipse
+
+if [ $# -gt 0 ]; then
+ ECLIPSE="$1" ; shift
+fi
+
+find * -name pom.xml -print0 | xargs -0 grep eclipse-plugin | cut -f1 -d: | sort -u >/tmp/t1_$$.txt
+
+for POM in $( cat /tmp/t1_$$.txt ); do
+ $ECLIPSE -noSplash \
+ -application org.eclipse.ant.core.antRunner -v \
+ -buildfile run-xsl.xml \
+ -Dfile.sheet="fix-pom.xsl" \
+ -Dfile.in="$(pwd)/$POM" \
+ -Dfile.out="$(pwd)/${POM}.out"
+ xmllint --format "${POM}.out" >"${POM}"
+ rm "${POM}.out"
+done
+
+find * -name pom.xml -print0 | xargs -0 grep eclipse-feature | cut -f1 -d: | sort -u >/tmp/t1_$$.txt
+
+for POM in $( cat /tmp/t1_$$.txt ); do
+ $ECLIPSE -noSplash \
+ -application org.eclipse.ant.core.antRunner -v \
+ -buildfile run-xsl.xml \
+ -Dfile.sheet="fix-feature-pom.xsl" \
+ -Dfile.in="$(pwd)/$POM" \
+ -Dfile.out="$(pwd)/${POM}.out"
+ xmllint --format "${POM}.out" >"${POM}"
+ rm "${POM}.out"
+done
+
+
+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
+ $ECLIPSE -noSplash \
+ -application org.eclipse.ant.core.antRunner -v \
+ -buildfile run-xsl.xml \
+ -Dfile.sheet="fix-pom.xsl" \
+ -Dfile.in="$(pwd)/$POM" \
+ -Dfile.out="$(pwd)/${POM}.out"
+ xmllint --format "${POM}.out" >"${POM}"
+ rm "${POM}.out"
+done

Back to the top