diff options
Diffstat (limited to 'bg1/install-1cd-totsc-uk.sh')
-rwxr-xr-x | bg1/install-1cd-totsc-uk.sh | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/bg1/install-1cd-totsc-uk.sh b/bg1/install-1cd-totsc-uk.sh index 9f2f582..3584c07 100755 --- a/bg1/install-1cd-totsc-uk.sh +++ b/bg1/install-1cd-totsc-uk.sh @@ -17,8 +17,8 @@ # Tales of the Sword Coast (1CD UK version) scriptdir="$(dirname $0)"/.. -source "$scriptdir/includes/generic-includes.sh" -source "$scriptdir/includes/cd-includes.sh" +source "${scriptdir}/includes/generic-includes.sh" +source "${scriptdir}/includes/cd-includes.sh" parseargs "$@" @@ -28,24 +28,21 @@ getcd 1 $BG1_TOTSC_1CD_UK_MD5 data1.cab mkdir -p "$TARGETDIR" || die -unshield -L x $CDMOUNT/data1.cab -d "$TARGETDIR" || die +unshield -L x "${CDMOUNT}/data1.cab" -d "$TARGETDIR" || die -cp $CDMOUNT/dialog.tlk "$TARGETDIR" || die +cp "${CDMOUNT}/dialog.tlk" "$TARGETDIR" || die -mkdir -p "$TARGETDIR"/save || die +mkdir -p "${TARGETDIR/save}" || die -cp -R "$TARGETDIR"/minimumdata/* "$TARGETDIR" || die -rm -r "$TARGETDIR"/minimumdata +move_and_remove "${TARGETDIR}/minimumdata" "$TARGETDIR" +move_and_remove "${TARGETDIR}/english" "$TARGETDIR" -cp -R "$TARGETDIR"/english/* "$TARGETDIR" || die -rm -r "$TARGETDIR"/english +cp -R "${CDMOUNT}/override/"* "${TARGETDIR}/override/" || die -cp -R "$CDMOUNT"/override/* "$TARGETDIR"/override/ || die - -mkdir -p "$TARGETDIR"/movies +mkdir -p "${TARGETDIR}/movies" copylower "$CDMOUNT/cd6/" "$TARGETDIR" -mkdir -p "$TARGETDIR"/mpsave -cp -R $CDMOUNT/[Ss]ave/* "$TARGETDIR"/mpsave || die +mkdir -p "${TARGETDIR}/mpsave" +cp -R "${CDMOUNT}/"[Ss]ave/* "${TARGETDIR}/mpsave" || die setperms "$TARGETDIR" |