Skip to main content
summaryrefslogtreecommitdiffstats
blob: 4c12688109ad8eecbaff6feaf610a78fb200d919 (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
42
43
44
45
46
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