#!/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"