summaryrefslogtreecommitdiff
path: root/pst/install-4cd-minimal.sh
blob: 5ffb88bd42fb9e702f61084d17e9fe936a0cc8a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
# Installs Planescape Torment 4CD version minimal

FULLGAMENAME="Planescape Torment: 4CD version"

scriptdir="$(dirname $0)"/..
source "$scriptdir/includes/generic-includes.sh"
source "$scriptdir/includes/cd-includes.sh"

parseargs "$@"

checkforbin unshield

getcd 1 5e8c2075163aca124de4a467fb33063d data1.cab

mkdir -p "$TARGETDIR" || die

unshield -L x $CDMOUNT/data1.cab -d "$TARGETDIR" || die

cp -R "$TARGETDIR"/program_executable_files/* "$TARGETDIR" || die
rm -r "$TARGETDIR"/program_executable_files

cp $CDMOUNT/torment.ico "$TARGETDIR" || die

mkdir -p "$TARGETDIR/save" || die

setperms "$TARGETDIR"