blob: 9a64ecc4de75d3a6f5bd589c33a0645a04b33740 (
plain)
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
48
49
50
51
52
53
54
55
56
|
#!/bin/bash
# jr4 tf jdtcore-for-aspectj.jar images/ant_logo_large.gif readme.txt
errExit() {
[ -n "$1" ] && echo "ERROR: $1"
[ -n "$2" ] && exit "$2"
}
[ -f build.xml.mine ] || errExit "requires build.xml.mine" 23
[ -f build.xml.head ] || errExit "requires build.xml.head" 23
cp build.xml build.xml.orig
scriptDir=`dirname "${0}"`
cd "$scriptDir/.."
ant=../lib/ant/bin/ant
[ -n "$DEBUG"] || ant="../lib/ant/bin/ant -verbose"
jdk="${JAVA_HOME:-${JDKDIR:-c:/home/apps/jdk14}}"
jr4="$jdk/bin/jar"
rm -rf ../aj-build/*
[ -d ../aj-build/jars ] && exit 23
$ant build
mv ../aj-build/jars/build.jar ../lib/build/build.jar || exit 54
rm -rf build-test
[ -d build-test ] && errExit "rm build-test" 34
mkdir build-test
cp build.xml.head build.xml
rm -rf ../aj-build/*
[ -d ../aj-build/jars ] && errExit "rm aj-build" 23
$ant aspectjtools-dist
mv ../aj-build/dist build-test/dist-head
mv build.xml.orig build.xml
cp build.xml.mine build.xml
rm -rf ../aj-build/*
[ -d ../aj-build/jars ] && errExit "rm aj-build" 23
$ant aspectjtools-dist
mv ../aj-build/dist build-test/dist-mine
mv build.xml.orig build.xml
cd build-test
for i in dist-mine dist-head; do
$jr4 tf $i/tools/lib/aspectjtools.jar \
| sort \
> $i.txt;
done;
# skip
diff dist*.txt
wc -l dist*.txt
grep ant_logo_large dist*.txt
echo "rm -rf build-test"
|