blob: 5126ec701a7bfc7f7c88815e20571d3caca5aa2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/bash
# BG1 official international patch
scriptdir="$(dirname $0)"/..
source "$scriptdir/includes/generic-includes.sh"
source "$scriptdir/includes/patch-includes.sh"
parseargs "$@"
checkforbin unzip unshield wget
setuptmp
getpatch http://downloads.bioware.com/baldursgate1/bgintl114315.exe
unzip $TMPDIR/bgintl114315.exe -d $TMPDIR || die
unshield -g "$LANGUAGE" -L x $TMPDIR/data1.cab -d $TMPDIR || die
LANGUAGE="$(echo $LANGUAGE|tr A-Z a-z|tr ' ' _)" # alter formatting
cp -R $TMPDIR/"$LANGUAGE"/* "$TARGETDIR" || die
cleanuptmp
setperms "$TARGETDIR"
|