-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathgetJOGL
More file actions
37 lines (28 loc) · 775 Bytes
/
getJOGL
File metadata and controls
37 lines (28 loc) · 775 Bytes
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
BASE_URL="http://jogamp.org/deployment/webstart"
OS_NAMES="macosx-universal linux-i586 linux-amd64 windows-i586 windows-amd64"
mkdir jogl
cd jogl
for OS_NAME in $OS_NAMES ; do
mkdir $OS_NAME
cd $OS_NAME
for N in gluegen-rt jogl.all nativewindow.all ; do
wget $BASE_URL/$N.jar.gz
gzip -d $N.jar.gz ;
done
for N in gluegen-rt jogl nativewindow ; do
wget $BASE_URL/$N-natives-$OS_NAME.jar
unzip $N-natives-$OS_NAME.jar
rm $N-natives-$OS_NAME.jar
rm -fR META-INF ;
done
zip ../jogl-$OS_NAME.zip *
cd ..
rm -fR $OS_NAME
cp jogl-$OS_NAME.zip jogl-$OS_NAME-`date '+%Y%m%d'`.zip
mv jogl-$OS_NAME.zip jogl-$OS_NAME-latest.zip ;
done
for OS_NAME in $OS_NAMES ; do
echo "Platform $OS_NAME :"
unzip -l jogl-$OS_NAME-latest.zip
echo "" ;
done