-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathinstall_data2.sh
executable file
·77 lines (65 loc) · 2.02 KB
/
install_data2.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
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/bin/bash
# install complement data for the CDrom version
# must be installed after the software and data part
function InstData {
pkg=$1.tgz
ddir=$2
pkgz=BaseData/$pkg
if [ ! -e $pkgz ]; then
wget http://sourceforge.net/projects/virtualmoon/files/OldFiles/6-Source_Data/$pkg/download -O $pkgz
fi
tar xvzf $pkgz -C $ddir
}
function InstTexture {
pkg=$1.tgz
ddir=$2
pkgz=BaseData/$pkg
if [ ! -e $pkgz ]; then
wget http://sourceforge.net/projects/virtualmoon/files/OldFiles/6-Source_Data/$pkg/download -O $pkgz
fi
tar xvzf $pkgz -C $ddir
}
function InstPicture {
pkg=$1.tgz
ddir=$2
pkgz=BaseData/$pkg
if [ ! -e $pkgz ]; then
wget http://sourceforge.net/projects/virtualmoon/files/OldFiles/6-Source_Data/$pkg/download -O $pkgz
fi
tar xvzf $pkgz -C $ddir
}
destdir=$1
if [ -z "$destdir" ]; then
export destdir=/tmp/virtualmoon
fi
echo Install virtualmoon data2 to $destdir
install -m 755 -d $destdir
install -m 755 -d $destdir/share
install -m 755 -d $destdir/share/virtualmoon
InstData Base_Database2 $destdir
InstData Base_ILCD $destdir
InstData Base_Airbrush $destdir
InstData Base_Clementine $destdir
InstData Base_WAC $destdir
InstData Base_LOLA_Kaguya_Shade $destdir
# issues with bumpmap on Linux, better to not install for now
# InstData Base_Bumpmap $destdir
InstTexture TexturesAirbrush_na $destdir
InstTexture TexturesClementine $destdir
InstTexture TexturesClementineNegative $destdir
InstTexture TexturesLopam $destdir
InstTexture TexturesWAC $destdir
InstTexture TexturesWAC_LOWSUN $destdir
InstTexture Texture_LOLA_Kaguya_Shade $destdir
InstTexture TexturesChange $destdir
InstTexture TextureHistorical $destdir
InstTexture TextureOverlay $destdir
InstTexture TextureGeological $destdir
InstTexture TextureCNSAGeological $destdir
InstPicture PictureApolloMapping $destdir
InstPicture PictureCLA $destdir
InstPicture PictureClementine $destdir
InstPicture PictureLAC_LM $destdir
InstPicture PictureLopam $destdir
InstPicture PictureSmart1 $destdir
InstPicture PictureLunarPits $destdir