forked from libgdx/libgdx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update.sh
55 lines (45 loc) · 3.03 KB
/
update.sh
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
#! /usr/bin/env sh
# Execute this in the root directory of the trunk to update all jars and natives from
# the CI server.
wget http://libgdx.badlogicgames.com/nightlies/libgdx-nightly-latest.zip -O libgdx-nightlies.zip
unzip libgdx-nightlies.zip -d nightlies
unzip nightlies/gdx-natives.jar -d nightlies/libs
# copy natives to gdx/libs and extensions libs
cp nightlies/gdx-natives.jar gdx/libs
cp -rf nightlies/armeabi nightlies/armeabi-v7a gdx/libs
# gdx-audio natives
cp -rf nightlies/extensions/gdx-audio-natives.jar extensions/gdx-audio/libs
cp -rf nightlies/extensions/armeabi/libgdx-audio.so extensions/gdx-audio/libs/armeabi
cp -rf nightlies/extensions/armeabi-v7a/libgdx-audio.so extensions/gdx-audio/libs/armeabi-v7a
# gdx-image natives
cp -rf nightlies/extensions/gdx-image-natives.jar extensions/gdx-image/libs
cp -rf nightlies/extensions/armeabi/libgdx-image.so extensions/gdx-image/libs/armeabi
cp -rf nightlies/extensions/armeabi-v7a/libgdx-image.so extensions/gdx-image/libs/armeabi-v7a
# gdx-freetype natives
cp -rf nightlies/extensions/gdx-freetype-natives.jar extensions/gdx-freetype/libs
cp -rf nightlies/extensions/armeabi/libgdx-freetype.so extensions/gdx-freetype/libs/armeabi
cp -rf nightlies/extensions/armeabi-v7a/libgdx-freetype.so extensions/gdx-freetype/libs/armeabi-v7a
# gdx-bullet natives
cp -rf nightlies/extensions/gdx-bullet/gdx-bullet-natives.jar extensions/gdx-bullet/libs
cp -rf nightlies/extensions/gdx-bullet/armeabi/libgdx-bullet.so extensions/gdx-bullet/libs/armeabi
cp -rf nightlies/extensions/gdx-bullet/armeabi-v7a/libgdx-bullet.so extensions/gdx-bullet/libs/armeabi-v7a
# gdx-controllers natives
cp -rf nightlies/extensions/gdx-controllers-desktop-natives.jar extensions/gdx-controllers/gdx-controllers-desktop/libs
# copy android natives to tests
cp -rf nightlies/armeabi nightlies/armeabi-v7a tests/gdx-tests-android/libs
cp -rf nightlies/extensions/armeabi nightlies/extensions/armeabi-v7a tests/gdx-tests-android/libs
cp -rf nightlies/extensions/gdx-bullet/armeabi/libgdx-bullet.so tests/gdx-tests-android/libs/armeabi
cp -rf nightlies/extensions/gdx-bullet/armeabi-v7a/libgdx-bullet.so tests/gdx-tests-android/libs/armeabi-v7a
# copy jars and natives to demos
cp -rf nightlies/armeabi nightlies/armeabi-v7a demos/invaders/gdx-invaders-android/libs
cp -rf nightlies/armeabi nightlies/armeabi-v7a demos/vector-pinball/gdx-vectorpinball-android/libs
cp -rf nightlies/armeabi nightlies/armeabi-v7a demos/superjumper/superjumper-android/libs
cp -rf nightlies/armeabi nightlies/armeabi-v7a demos/metagun/metagun-android/libs
cp -rf nightlies/armeabi nightlies/armeabi-v7a demos/cuboc/cuboc-android/libs
cp -rf nightlies/armeabi nightlies/armeabi-v7a demos/pax-britannica/pax-britannica-android/libs
cp -rf nightlies/armeabi nightlies/armeabi-v7a demos/very-angry-robots/very-angry-robots-android/libs
cp -rf nightlies/armeabi nightlies/armeabi-v7a extensions/model-loaders/model-loaders-android/libs
cp -rf nightlies/armeabi nightlies/armeabi-v7a extensions/gdx-remote/libs
# remove temporary directory
rm -rf nightlies
rm libgdx-nightlies.zip