-
Notifications
You must be signed in to change notification settings - Fork 6
/
install_win_data3.sh
executable file
·46 lines (37 loc) · 1.33 KB
/
install_win_data3.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
#!/bin/bash
# install complement data for the DVD version
# must be installed after the software and data part
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
}
destdir=$1
if [ -z "$destdir" ]; then
export destdir=/tmp/virtualmoon
fi
echo Install virtualmoon data3 to $destdir
install -m 755 -d $destdir
install -m 755 -d $destdir/Database
install -v -m 644 Database/AVL\ Unnamed\ 2-0 $destdir/Database/
install -v -m 644 Database/AVL\ Unnamed\ 2-1 $destdir/Database/
install -v -m 644 Database/AVL\ Unnamed\ 2-2 $destdir/Database/
install -v -m 644 Database/AVL\ Unnamed\ 2-3 $destdir/Database/
install -v -m 644 Database/AVL\ Unnamed\ 2-4 $destdir/Database/
install -v -m 644 Database/AVL\ Unnamed\ 2-5 $destdir/Database/
install -v -m 644 Database/AVL\ Unnamed\ 2-6 $destdir/Database/
InstTexture TexturesChange_L5 $destdir
InstTexture TexturesLopam_L5 $destdir
InstTexture TexturesWAC_L5 $destdir
InstTexture TexturesWAC_LOWSUN_L5 $destdir
InstTexture Texture_LOLA_Kaguya_Shade_L5 $destdir