From 2b5d0fe643cb7abc9a75634d576a6ea19d39ddcf Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 1 Jun 2009 03:18:01 +0100 Subject: Added more info to patches & improved url handling --- bg1/install-patch-totsc-balderdash-text.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'bg1/install-patch-totsc-balderdash-text.sh') diff --git a/bg1/install-patch-totsc-balderdash-text.sh b/bg1/install-patch-totsc-balderdash-text.sh index 0d16147..5a9bc71 100755 --- a/bg1/install-patch-totsc-balderdash-text.sh +++ b/bg1/install-patch-totsc-balderdash-text.sh @@ -14,7 +14,14 @@ # See for a copy of the GNU General # Public License. # -# BG1 TOTSC Baldurdash text pack +# BG1 TOTSC Baldurdash text pack v1.1 +# +# info : http://www.baldurdash.org/BG1/bg1fixes.html +# size : 1.2 MB +# date : 7/07/01 + +patch_url="http://www.baldurdash.org/LargeDownloads/BG1TOSCGameTextUpdate11.exe" +patch_name="$(basename $patch_url)" scriptdir="$(dirname $0)"/.. source "${scriptdir}/includes/generic-includes.sh" @@ -31,11 +38,11 @@ checkforbin unzip wget setuptmp -getpatch http://www.baldurdash.org/LargeDownloads/BG1TOSCGameTextUpdate11.exe +getpatch $patch_url # unzip complains unnecessarily about skipping non-zip # part so don't print errors or die on failure -unzip -L "${TMPDIR}/BG1TOSCGameTextUpdate11.exe" -d "$TMPDIR" 2>/dev/null +unzip -L "${TMPDIR}/${patch_name}" -d "$TMPDIR" 2>/dev/null cp "${TMPDIR}/dialog.tlk" "${TARGETDIR}/" || diesoftly cleanuptmp -- cgit v1.2.3