From be2066c426699d84ce2b40749df6d218ee90f81f Mon Sep 17 00:00:00 2001 From: Nick White Date: Wed, 15 Apr 2009 15:35:59 +0100 Subject: Added license notice to all files --- bg1/install-3cd-extra.sh | 15 +++++++++++++++ bg1/install-3cd-minimal.sh | 15 +++++++++++++++ bg1/install-5cd-extra.sh | 15 +++++++++++++++ bg1/install-5cd-minimal.sh | 15 +++++++++++++++ bg1/install-patch-baldurdash-fix.sh | 15 +++++++++++++++ bg1/install-patch-baldurdash-text.sh | 15 +++++++++++++++ bg1/install-patch-intl.sh | 15 +++++++++++++++ bg1/install-patch-us.sh | 15 +++++++++++++++ 8 files changed, 120 insertions(+) (limited to 'bg1') diff --git a/bg1/install-3cd-extra.sh b/bg1/install-3cd-extra.sh index a5d1b8e..b7604f5 100755 --- a/bg1/install-3cd-extra.sh +++ b/bg1/install-3cd-extra.sh @@ -1,4 +1,19 @@ #!/bin/bash +# Copyright 2009 Nick White +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# See for a copy of the GNU General +# Public License. +# # Extra Baldur's Gate content (so CDs aren't needed) scriptdir="$(dirname $0)"/.. diff --git a/bg1/install-3cd-minimal.sh b/bg1/install-3cd-minimal.sh index 42d3c0d..ac83cfa 100755 --- a/bg1/install-3cd-minimal.sh +++ b/bg1/install-3cd-minimal.sh @@ -1,4 +1,19 @@ #!/bin/sh +# Copyright 2009 Nick White +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# See for a copy of the GNU General +# Public License. +# # Baldur's Gate & Tales of the Sword Coast 3CD version minimal scriptdir="$(dirname $0)"/.. diff --git a/bg1/install-5cd-extra.sh b/bg1/install-5cd-extra.sh index 445b36c..b97f052 100755 --- a/bg1/install-5cd-extra.sh +++ b/bg1/install-5cd-extra.sh @@ -1,4 +1,19 @@ #!/bin/bash +# Copyright 2009 Nick White +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# See for a copy of the GNU General +# Public License. +# # Installs all extra Baldur's Gate content (so CDs aren't needed) scriptdir="$(dirname $0)"/.. diff --git a/bg1/install-5cd-minimal.sh b/bg1/install-5cd-minimal.sh index 3db68d0..af5aa7f 100755 --- a/bg1/install-5cd-minimal.sh +++ b/bg1/install-5cd-minimal.sh @@ -1,4 +1,19 @@ #!/bin/sh +# Copyright 2009 Nick White +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# See for a copy of the GNU General +# Public License. +# # Baldur's Gate 5CD International version minimal scriptdir="$(dirname $0)"/.. diff --git a/bg1/install-patch-baldurdash-fix.sh b/bg1/install-patch-baldurdash-fix.sh index 939d4f6..ef00260 100755 --- a/bg1/install-patch-baldurdash-fix.sh +++ b/bg1/install-patch-baldurdash-fix.sh @@ -1,4 +1,19 @@ #!/bin/bash +# Copyright 2009 Nick White +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# See for a copy of the GNU General +# Public License. +# # BG1/TOTSC Baldurdash fix pack scriptdir="$(dirname $0)"/.. diff --git a/bg1/install-patch-baldurdash-text.sh b/bg1/install-patch-baldurdash-text.sh index 266c4ee..bab642d 100755 --- a/bg1/install-patch-baldurdash-text.sh +++ b/bg1/install-patch-baldurdash-text.sh @@ -1,4 +1,19 @@ #!/bin/bash +# Copyright 2009 Nick White +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# See for a copy of the GNU General +# Public License. +# # BG1 Baldurdash text pack scriptdir="$(dirname $0)"/.. diff --git a/bg1/install-patch-intl.sh b/bg1/install-patch-intl.sh index 5126ec7..2c0aceb 100755 --- a/bg1/install-patch-intl.sh +++ b/bg1/install-patch-intl.sh @@ -1,4 +1,19 @@ #!/bin/bash +# Copyright 2009 Nick White +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# See for a copy of the GNU General +# Public License. +# # BG1 official international patch scriptdir="$(dirname $0)"/.. diff --git a/bg1/install-patch-us.sh b/bg1/install-patch-us.sh index 3e0d2cb..41a5e71 100755 --- a/bg1/install-patch-us.sh +++ b/bg1/install-patch-us.sh @@ -1,4 +1,19 @@ #!/bin/bash +# Copyright 2009 Nick White +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# See for a copy of the GNU General +# Public License. +# # BG1 official US/Canada patch scriptdir="$(dirname $0)"/.. -- cgit v1.2.3 From f668f7acafd2c15fe915f753d7ca9fd5b5f53d43 Mon Sep 17 00:00:00 2001 From: Nick White Date: Wed, 15 Apr 2009 15:38:07 +0100 Subject: Ensure bash is always used to execute scripts --- bg1/install-3cd-minimal.sh | 2 +- bg1/install-5cd-minimal.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'bg1') diff --git a/bg1/install-3cd-minimal.sh b/bg1/install-3cd-minimal.sh index ac83cfa..08ff855 100755 --- a/bg1/install-3cd-minimal.sh +++ b/bg1/install-3cd-minimal.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Copyright 2009 Nick White # # This program is free software; you can redistribute it and/or diff --git a/bg1/install-5cd-minimal.sh b/bg1/install-5cd-minimal.sh index af5aa7f..8625427 100755 --- a/bg1/install-5cd-minimal.sh +++ b/bg1/install-5cd-minimal.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Copyright 2009 Nick White # # This program is free software; you can redistribute it and/or -- cgit v1.2.3 From b4287acf7cef82f0215de55fd937670761fdee41 Mon Sep 17 00:00:00 2001 From: Nick White Date: Wed, 15 Apr 2009 15:53:19 +0100 Subject: Normalised script descriptions --- bg1/install-3cd-extra.sh | 2 +- bg1/install-3cd-minimal.sh | 2 +- bg1/install-5cd-extra.sh | 2 +- bg1/install-5cd-minimal.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'bg1') diff --git a/bg1/install-3cd-extra.sh b/bg1/install-3cd-extra.sh index b7604f5..31cc5d7 100755 --- a/bg1/install-3cd-extra.sh +++ b/bg1/install-3cd-extra.sh @@ -14,7 +14,7 @@ # See for a copy of the GNU General # Public License. # -# Extra Baldur's Gate content (so CDs aren't needed) +# Extra Baldur's Gate (3CD version) content (so CDs aren't needed) scriptdir="$(dirname $0)"/.. source "$scriptdir/includes/generic-includes.sh" diff --git a/bg1/install-3cd-minimal.sh b/bg1/install-3cd-minimal.sh index 08ff855..09d189b 100755 --- a/bg1/install-3cd-minimal.sh +++ b/bg1/install-3cd-minimal.sh @@ -14,7 +14,7 @@ # See for a copy of the GNU General # Public License. # -# Baldur's Gate & Tales of the Sword Coast 3CD version minimal +# Baldur's Gate & Tales of the Sword Coast (3CD version) minimal scriptdir="$(dirname $0)"/.. source "$scriptdir/includes/generic-includes.sh" diff --git a/bg1/install-5cd-extra.sh b/bg1/install-5cd-extra.sh index b97f052..9e6847d 100755 --- a/bg1/install-5cd-extra.sh +++ b/bg1/install-5cd-extra.sh @@ -14,7 +14,7 @@ # See for a copy of the GNU General # Public License. # -# Installs all extra Baldur's Gate content (so CDs aren't needed) +# Extra Baldur's Gate (5CD International version) content (so CDs aren't needed) scriptdir="$(dirname $0)"/.. source "$scriptdir/includes/generic-includes.sh" diff --git a/bg1/install-5cd-minimal.sh b/bg1/install-5cd-minimal.sh index 8625427..002c5a9 100755 --- a/bg1/install-5cd-minimal.sh +++ b/bg1/install-5cd-minimal.sh @@ -14,7 +14,7 @@ # See for a copy of the GNU General # Public License. # -# Baldur's Gate 5CD International version minimal +# Baldur's Gate (5CD International version) minimal scriptdir="$(dirname $0)"/.. source "$scriptdir/includes/generic-includes.sh" -- cgit v1.2.3 From 18087561765ad596df00f106b9b9c80a90397e20 Mon Sep 17 00:00:00 2001 From: Nick White Date: Thu, 16 Apr 2009 11:33:49 +0100 Subject: Moved totsc scripts to correct location --- bg1/install-3cd-extra.sh | 36 ---------------------------- bg1/install-3cd-minimal.sh | 58 ---------------------------------------------- 2 files changed, 94 deletions(-) delete mode 100755 bg1/install-3cd-extra.sh delete mode 100755 bg1/install-3cd-minimal.sh (limited to 'bg1') diff --git a/bg1/install-3cd-extra.sh b/bg1/install-3cd-extra.sh deleted file mode 100755 index 31cc5d7..0000000 --- a/bg1/install-3cd-extra.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash -# Copyright 2009 Nick White -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# See for a copy of the GNU General -# Public License. -# -# Extra Baldur's Gate (3CD version) content (so CDs aren't needed) - -scriptdir="$(dirname $0)"/.. -source "$scriptdir/includes/generic-includes.sh" -source "$scriptdir/includes/cd-includes.sh" - -parseargs "$@" - -copylower "$CDMOUNT/cd1/" "$TARGETDIR" - -getcd 2 c04758a6af171bf9a35d8e3d4dcd807c CD2/Movies/MovieCD2.bif -copylower "$CDMOUNT/cd2/" "$TARGETDIR" -copylower "$CDMOUNT/cd5/" "$TARGETDIR" -cp $CDMOUNT/CD2/Manual/Baldur.pdf "$TARGETDIR"/manual || die - -getcd 3 ba4224f50f890e10561d22f602d6a991 CD3/Movies/MovieCD3.bif -copylower "$CDMOUNT/cd3/" "$TARGETDIR" -copylower "$CDMOUNT/cd4/" "$TARGETDIR" -copylower "$CDMOUNT/cd6/" "$TARGETDIR" -setperms "$TARGETDIR" diff --git a/bg1/install-3cd-minimal.sh b/bg1/install-3cd-minimal.sh deleted file mode 100755 index 09d189b..0000000 --- a/bg1/install-3cd-minimal.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/bash -# Copyright 2009 Nick White -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# See for a copy of the GNU General -# Public License. -# -# Baldur's Gate & Tales of the Sword Coast (3CD version) minimal - -scriptdir="$(dirname $0)"/.. -source "$scriptdir/includes/generic-includes.sh" -source "$scriptdir/includes/cd-includes.sh" - -parseargs "$@" - -checkforbin unshield - -getcd 1 1a6828b97a27967e8c4acc25e1ef48d2 data1.cab - -mkdir -p "$TARGETDIR" || die - -cp $CDMOUNT/dialog.tlk "$TARGETDIR" || die - -unshield -L x $CDMOUNT/data1.cab -d "$TARGETDIR" || die - -cp -R "$TARGETDIR"/minimumdata/* "$TARGETDIR" || die -rm -r "$TARGETDIR"/minimumdata - -cp -R "$TARGETDIR"/recommended_music/music/* "$TARGETDIR"/music/ || die -rm -r "$TARGETDIR"/recommended_music - -cp -R "$TARGETDIR"/english_sounds/sounds/* "$TARGETDIR"/sounds/ || die -rm -r "$TARGETDIR"/english_sounds - -cp -R "$TARGETDIR"/english/* "$TARGETDIR" || die -rm -r "$TARGETDIR"/english - -mkdir -p "$TARGETDIR"/movies -mkdir -p "$TARGETDIR"/manual - -mkdir -p "$TARGETDIR"/save -cp -R $CDMOUNT/[Ss]ave/* "$TARGETDIR"/save || die - -cp $CDMOUNT/Manual/BGManual.pdf "$TARGETDIR"/manual/ || die -cp $CDMOUNT/Manual/TotscManual.pdf "$TARGETDIR"/manual/ || die - -cp $CDMOUNT/baldur.ico "$TARGETDIR" || die - -setperms "$TARGETDIR" -- cgit v1.2.3 From 3603dfcb5d12e19b75dccbc2a621adb83fd7adea Mon Sep 17 00:00:00 2001 From: Nick White Date: Fri, 17 Apr 2009 17:10:07 +0100 Subject: Move overridden die for patch to new general function: diesoftly --- bg1/install-patch-baldurdash-fix.sh | 2 +- bg1/install-patch-baldurdash-text.sh | 4 ++-- bg1/install-patch-intl.sh | 6 +++--- bg1/install-patch-us.sh | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) (limited to 'bg1') diff --git a/bg1/install-patch-baldurdash-fix.sh b/bg1/install-patch-baldurdash-fix.sh index ef00260..be9b3be 100755 --- a/bg1/install-patch-baldurdash-fix.sh +++ b/bg1/install-patch-baldurdash-fix.sh @@ -32,7 +32,7 @@ getpatch http://www.baldurdash.org/LargeDownloads/BG1FixPack11.exe # 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 -cp $TMPDIR/* "$TARGETDIR/override/" || die +cp $TMPDIR/* "$TARGETDIR/override/" || diesoftly cleanuptmp setperms "$TARGETDIR" diff --git a/bg1/install-patch-baldurdash-text.sh b/bg1/install-patch-baldurdash-text.sh index bab642d..9dbf9a9 100755 --- a/bg1/install-patch-baldurdash-text.sh +++ b/bg1/install-patch-baldurdash-text.sh @@ -24,7 +24,7 @@ parseargs "$@" if [ "$LANGUAGE" != "English" ]; then echo "The Baldurdash text pack is only available in English" - die + diesoftly fi checkforbin unzip wget @@ -36,7 +36,7 @@ getpatch http://www.baldurdash.org/LargeDownloads/BG1NoTOSCGameTextUpdate10.exe # unzip complains unnecessarily about skipping non-zip # part so don't print errors or die on failure unzip -L $TMPDIR/BG1NoTOSCGameTextUpdate10.exe -d $TMPDIR 2>/dev/null -cp $TMPDIR/dialog.tlk "$TARGETDIR/" || die +cp $TMPDIR/dialog.tlk "$TARGETDIR/" || diesoftly cleanuptmp setperms "$TARGETDIR" diff --git a/bg1/install-patch-intl.sh b/bg1/install-patch-intl.sh index 2c0aceb..2acb59e 100755 --- a/bg1/install-patch-intl.sh +++ b/bg1/install-patch-intl.sh @@ -28,11 +28,11 @@ 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 +unzip $TMPDIR/bgintl114315.exe -d $TMPDIR || diesoftly +unshield -g "$LANGUAGE" -L x $TMPDIR/data1.cab -d $TMPDIR || diesoftly LANGUAGE="$(echo $LANGUAGE|tr A-Z a-z|tr ' ' _)" # alter formatting -cp -R $TMPDIR/"$LANGUAGE"/* "$TARGETDIR" || die +cp -R $TMPDIR/"$LANGUAGE"/* "$TARGETDIR" || diesoftly cleanuptmp setperms "$TARGETDIR" diff --git a/bg1/install-patch-us.sh b/bg1/install-patch-us.sh index 41a5e71..c3fe4b0 100755 --- a/bg1/install-patch-us.sh +++ b/bg1/install-patch-us.sh @@ -28,10 +28,10 @@ setuptmp getpatch http://downloads.bioware.com/baldursgate1/bg114315.exe -cabextract -L $TMPDIR/bg114315.exe -d $TMPDIR || die -unshield -L x $TMPDIR/data1.cab -d $TMPDIR || die +cabextract -L $TMPDIR/bg114315.exe -d $TMPDIR || diesoftly +unshield -L x $TMPDIR/data1.cab -d $TMPDIR || diesoftly -cp -R $TMPDIR/english/* "$TARGETDIR" || die +cp -R $TMPDIR/english/* "$TARGETDIR" || diesoftly cleanuptmp setperms "$TARGETDIR" -- cgit v1.2.3