summaryrefslogtreecommitdiffstats
path: root/test/TestMultiAndFatJar/make-fat_and_multi.sh
blob: de031be231c51153f44f3b9535a0e145e5f3cef9 (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
THISDIR=`pwd`
GLUEGEN=$THISDIR/../../../gluegen
JOGL=$THISDIR/../../../jogl

bdir=build-x86_64

rm -rf temp
rm -rf output
mkdir output

#
# make fat
#
mkdir temp
cd temp
unzip -o $GLUEGEN/$bdir/gluegen-rt.jar 
unzip -o $GLUEGEN/$bdir/gluegen-rt-natives-linux-amd64.jar 
unzip -o $JOGL/$bdir/jar/jogl-all.jar
unzip -o $JOGL/$bdir/jar/jogl-all-natives-linux-amd64.jar
mkdir -p natives/linux-amd64
mv lib*.so natives/linux-amd64/
rm -rf META-INF
jar cf ../output/jogl-fat.jar *
cd ..
rm -rf temp

#
# make multi
#
mkdir temp
cd temp
unzip -o $GLUEGEN/$bdir/gluegen-rt.jar 
unzip -o $JOGL/$bdir/jar/jogl-all.jar
rm -rf META-INF
jar cf ../output/jogl-multi.jar *
rm -rf *
unzip -o $GLUEGEN/$bdir/gluegen-rt-natives-linux-amd64.jar 
unzip -o $JOGL/$bdir/jar/jogl-all-natives-linux-amd64.jar
mkdir -p natives/linux-amd64
mv lib*.so natives/linux-amd64/
rm -rf META-INF
jar cf ../output/jogl-multi-natives-linux-amd64.jar *

cd ..
rm -rf temp

#
# Just to run some tests
#
cp -a $JOGL/$bdir/jar/jogl-test.jar output/
cp -a $GLUEGEN/make/lib/junit.jar output/