diff options
author | Nick Daly <myownlittlworld@hotmail.com> | 2009-06-07 18:45:06 -0500 |
---|---|---|
committer | Nick Daly <myownlittlworld@hotmail.com> | 2009-06-07 18:45:06 -0500 |
commit | 4cfd80f9abe0ab6098f862f3dd1d3bb7af80379b (patch) | |
tree | 3b44bfa9c0bb4a923bc3db4a8b32a529201deed9 /bg2 | |
parent | 860dfd3daf4f03f71c1e0b8ce066b8d145c11ca2 (diff) | |
download | gemrb-gameinstallers-4cfd80f9abe0ab6098f862f3dd1d3bb7af80379b.tar.bz2 gemrb-gameinstallers-4cfd80f9abe0ab6098f862f3dd1d3bb7af80379b.zip |
BG2-SOA installer working correctly now!
Diffstat (limited to 'bg2')
-rwxr-xr-x | bg2/install-soa-4cd-us-extra.sh | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/bg2/install-soa-4cd-us-extra.sh b/bg2/install-soa-4cd-us-extra.sh index 6374720..402f75f 100755 --- a/bg2/install-soa-4cd-us-extra.sh +++ b/bg2/install-soa-4cd-us-extra.sh @@ -28,13 +28,26 @@ CD2_MD5="c78f41ff4cb47ea04fdf25ea6f55eb8b" CD3_MD5="61fa51451c9ab102383c082fac3687dc" CD4_MD5="d13f925c01c1f78fd35baa708715ebbd" +function bgtwo_smart_install +{ + # usage cd# + cp -r "${CDMOUNT}/CD${1}/" "$TARGETDIR/data" + chmod -R 755 "$TARGETDIR/data/CD${1}" + mkdir -p "$TARGETDIR/cd${1}/data" + mv "$TARGETDIR/data/CD${1}/Data/AREA"*".bif" "$TARGETDIR/cd${1}/data" + mv "$TARGETDIR/data/CD${1}/Data/"* "$TARGETDIR/data" + mv "$TARGETDIR/data/CD${1}/Movies" "$TARGETDIR/cd${1}/movies" + rm -r "$TARGETDIR/data/CD${1}/" + +} + getcd 2 $CD2_MD5 "data3.cab" -copylower "${CDMOUNT}/CD2/" "$TARGETDIR" +bgtwo_smart_install 2 getcd 3 $CD3_MD5 "data4.cab" -copylower "${CDMOUNT}/CD3/" "$TARGETDIR" +bgtwo_smart_install 3 getcd 4 $CD4_MD5 "data5.cab" -copylower "${CDMOUNT}/CD4/" "$TARGETDIR" +bgtwo_smart_install 4 teardown "$TARGETDIR" |