-
Notifications
You must be signed in to change notification settings - Fork 6
/
template_copyassets.sh
executable file
·64 lines (53 loc) · 1.45 KB
/
template_copyassets.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
56
57
58
59
60
61
62
63
64
#!/bin/bash
S=~/dev/apps/ide/jandroid
A=assets
# CHANGE THE FOLLOW TO YOUR OWN FOLDERS
P=~/j903/addons
J=~/j903
cd $S
rm -rf $S/$A
mkdir -p $S/$A
cp -r $J/system $S/$A/.
find $A \( -name -name '*.dll' -o -name '*.exe' -o -name '*.so' -o -name '*.dylib' -o -name '*.sh' -o -name '*.bat' '*.cmd' -o -name '.*' \) -delete
mkdir -p $S/$A/bin
echo "j903 install" > $S/$A/bin/installer.txt
copyaddon() {
rm -rf $S/$A/addons/$1/$2
mkdir -p $S/$A/addons/$1
cp -r $P/$1/$2 $S/$A/addons/$1
}
# copyaddon api expat
# copyaddon api gles
copyaddon api jni
# copyaddon api sl4a
# copyaddon arc zlib
# copyaddon convert json
# copyaddon data jmf
# copyaddon demos isigraph
# copyaddon demos wd
# copyaddon demos wdplot
# copyaddon docs help
# copyaddon games minesweeper
# copyaddon games nurikabe
# copyaddon games pousse
# copyaddon games solitaire
# copyaddon general misc
# copyaddon graphics afm
# copyaddon graphics bmp
# copyaddon graphics color
# copyaddon graphics gl2
# copyaddon graphics graph
# copyaddon graphics grid
# copyaddon graphics plot
# copyaddon graphics png
# copyaddon graphics print
# copyaddon graphics viewmat
copyaddon ide ja
copyaddon ide jhs
# copyaddon ide qt
# copyaddon labs labs
# copyaddon math deoptim
# copyaddon math misc
# copyaddon stats base
find $A/addons \( -name '*.jproj' -o -name '*.dll' -o -name '*.exe' -o -name '*.so' -o -name '*.dylib' -o -name 'd3.v3.min.js' -o -name 'baselibtags' -o -name '.*' \) -delete
cp $S/assets_version.txt $S/$A/.