summaryrefslogtreecommitdiff
path: root/bg1
diff options
context:
space:
mode:
authornick <nick@debian.hws.edu>2009-04-21 12:26:30 -0500
committernick <nick@debian.hws.edu>2009-04-21 12:26:30 -0500
commitd400ae382e09b091fb372ffc9163273ff40ddb1d (patch)
treef6ddeee2f984b5c4e0561621de1e722e312b2934 /bg1
parent9d7ce4e3d083c673de9a384f3ed6c7f741f38f7d (diff)
downloadgemrb-gameinstallers-d400ae382e09b091fb372ffc9163273ff40ddb1d.tar.bz2
gemrb-gameinstallers-d400ae382e09b091fb372ffc9163273ff40ddb1d.zip
Store MD5 sums as variables, avoid data duplication, increase clarity.
Diffstat (limited to 'bg1')
-rwxr-xr-xbg1/install-3cd-extra.sh7
-rwxr-xr-xbg1/install-3cd-minimal.sh2
-rwxr-xr-xbg1/install-5cd-minimal.sh2
3 files changed, 7 insertions, 4 deletions
diff --git a/bg1/install-3cd-extra.sh b/bg1/install-3cd-extra.sh
index 871ebbe..95c96a3 100755
--- a/bg1/install-3cd-extra.sh
+++ b/bg1/install-3cd-extra.sh
@@ -9,12 +9,15 @@ parseargs "$@"
copylower "$CDMOUNT/cd1/" "$TARGETDIR"
-getcd 2 c04758a6af171bf9a35d8e3d4dcd807c CD2/Movies/MovieCD2.bif
+CD2_MD5="c04758a6af171bf9a35d8e3d4dcd807c"
+CD3_MD5="ba4224f50f890e10561d22f602d6a991"
+
+getcd 2 $CD2_MD5 CD2/Movies/MovieCD2.bif
copylower "$CDMOUNT/cd2/" "$TARGETDIR"
copylower "$CDMOUNT/cd5/" "$TARGETDIR"
cp $CDMOUNT/Manual/Baldur.pdf "$TARGETDIR"/manual || die
-getcd 3 ba4224f50f890e10561d22f602d6a991 CD3/Movies/MovieCD3.bif
+getcd 3 $CD3_MD5 CD3/Movies/MovieCD3.bif
copylower "$CDMOUNT/cd3/" "$TARGETDIR"
copylower "$CDMOUNT/cd4/" "$TARGETDIR"
copylower "$CDMOUNT/cd6/" "$TARGETDIR"
diff --git a/bg1/install-3cd-minimal.sh b/bg1/install-3cd-minimal.sh
index eaef847..4169e40 100755
--- a/bg1/install-3cd-minimal.sh
+++ b/bg1/install-3cd-minimal.sh
@@ -9,7 +9,7 @@ parseargs "$@"
checkforbin unshield
-getcd 1 1a6828b97a27967e8c4acc25e1ef48d2 data1.cab
+getcd 1 $BG1_TOTSC_3CD_US_MD5 data1.cab
mkdir -p "$TARGETDIR" || die
diff --git a/bg1/install-5cd-minimal.sh b/bg1/install-5cd-minimal.sh
index 3db68d0..274bffa 100755
--- a/bg1/install-5cd-minimal.sh
+++ b/bg1/install-5cd-minimal.sh
@@ -9,7 +9,7 @@ parseargs "$@"
checkforbin unshield
-getcd 1 138528155dfeb695bd63f90eacee7dc0 data1.cab
+getcd 1 $BG1_5CD_INTL_MD5 data1.cab
mkdir -p "$TARGETDIR" || die