-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathinstall_win_data2.sh
More file actions
executable file
·95 lines (83 loc) · 2.53 KB
/
install_win_data2.sh
File metadata and controls
executable file
·95 lines (83 loc) · 2.53 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/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
tmpdir=$(mktemp -d)
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 $tmpdir
cp -a $tmpdir/share/virtualmoon/* $ddir/
rm -rf $tmpdir/share/virtualmoon/*
rmdir $tmpdir/share/virtualmoon
rmdir $tmpdir/share
rmdir $tmpdir
}
function InstTexture {
pkg=$1.tgz
ddir=$2
tmpdir=$(mktemp -d)
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 $tmpdir
cp -a $tmpdir/share/virtualmoon/* $ddir/
rm -rf $tmpdir/share/virtualmoon/*
rmdir $tmpdir/share/virtualmoon
rmdir $tmpdir/share
rmdir $tmpdir
}
function InstPicture {
pkg=$1.tgz
ddir=$2
tmpdir=$(mktemp -d)
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 $tmpdir
cp -a $tmpdir/share/virtualmoon/* $ddir/
rm -rf $tmpdir/share/virtualmoon/*
rmdir $tmpdir/share/virtualmoon
rmdir $tmpdir/share
rmdir $tmpdir
}
destdir=$1
if [ -z "$destdir" ]; then
export destdir=/tmp/virtualmoon
fi
echo Install virtualmoon data2 to $destdir
install -m 755 -d $destdir
InstData Base_Database2 $destdir
InstData Base_Database3 $destdir
InstData Base_Airbrush $destdir
InstData Base_Clementine $destdir
InstData Base_WAC $destdir
InstData Base_LOLA_Kaguya_Shade $destdir
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
InstTexture TexturesWAC_Color_Shade $destdir
InstPicture PictureApolloMapping $destdir
InstPicture PictureCLA $destdir
InstPicture PictureClementine $destdir
InstPicture PictureLAC_LM $destdir
InstPicture PictureLopam $destdir
InstPicture PictureSmart1 $destdir
InstPicture PictureLunarPits $destdir
InstPicture PictureBestofhistorical $destdir
InstPicture PictureBestofLROobliques $destdir