#!/bin/sh # Installs Planescape Torment 2CD version minimal FULLGAMENAME="Planescape Torment: 2CD version" scriptdir="$(dirname $0)"/.. source "$scriptdir/includes/generic-includes.sh" source "$scriptdir/includes/cd-includes.sh" parseargs "$@" checkforbin unshield getcd 1 $PST_2CD_MD5 data1.cab mkdir -p "$TARGETDIR" || die unshield -g MinimumData -L x $CDMOUNT/data1.cab -d "$TARGETDIR" || die unshield -g MinimumData -L x $CDMOUNT/data2.cab -d "$TARGETDIR" || die cp $CDMOUNT/Manual/Torment.pdf "$TARGETDIR"/manual.pdf || die cp $CDMOUNT/Torment.ico "$TARGETDIR"/torment.ico || die cp $CDMOUNT/Torment.ex_ "$TARGETDIR"/torment.exe || die mv "$TARGETDIR"/minimumdata/* "$TARGETDIR" || die rmdir "$TARGETDIR"/minimumdata || die mkdir -p "$TARGETDIR/save" || die setperms "$TARGETDIR"