diff options
author | Nick White <git@njw.me.uk> | 2009-06-01 03:18:01 +0100 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2009-06-01 03:18:01 +0100 |
commit | 2b5d0fe643cb7abc9a75634d576a6ea19d39ddcf (patch) | |
tree | 39854c5270c968b5deeaad12fc22ecd093af89bf /bg1/install-patch-baldurdash-fix.sh | |
parent | a45222f981eab7f3247dc4250a332ecdcb427cd2 (diff) | |
download | gemrb-gameinstallers-2b5d0fe643cb7abc9a75634d576a6ea19d39ddcf.tar.bz2 gemrb-gameinstallers-2b5d0fe643cb7abc9a75634d576a6ea19d39ddcf.zip |
Added more info to patches & improved url handling
Diffstat (limited to 'bg1/install-patch-baldurdash-fix.sh')
-rwxr-xr-x | bg1/install-patch-baldurdash-fix.sh | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/bg1/install-patch-baldurdash-fix.sh b/bg1/install-patch-baldurdash-fix.sh index a4c2122..90b629b 100755 --- a/bg1/install-patch-baldurdash-fix.sh +++ b/bg1/install-patch-baldurdash-fix.sh @@ -14,7 +14,14 @@ # See <http://www.gnu.org/licenses/> for a copy of the GNU General # Public License. # -# BG1/TOTSC Baldurdash fix pack +# BG1/TOTSC Baldurdash fix pack v1.1 +# +# info : http://www.baldurdash.org/BG1/bg1fixes.html +# size : 0.1 MB +# date : 7/07/01 + +patch_url="http://www.baldurdash.org/LargeDownloads/BG1FixPack11.exe" +patch_name="$(basename $patch_url)" scriptdir="$(dirname $0)"/.. source "${scriptdir}/includes/generic-includes.sh" @@ -26,12 +33,12 @@ checkforbin unzip wget setuptmp -getpatch http://www.baldurdash.org/LargeDownloads/BG1FixPack11.exe +getpatch $patch_url # unzip complains unnecessarily about skipping non-zip # part so don't print errors or die on failure -unzip -L "${TMPDIR}/BG1FixPack11.exe" -d "$TMPDIR" 2>/dev/null -rm "${TMPDIR}/BG1FixPack11.exe" "${TMPDIR}/bg1fixpack11readme.txt" +unzip -L "${TMPDIR}/${patch_name}" -d "$TMPDIR" 2>/dev/null +rm "${TMPDIR}/${patch_name}" "${TMPDIR}/bg1fixpack11readme.txt" cp "${TMPDIR}/"* "${TARGETDIR}/override/" || diesoftly cleanuptmp |