#!/bin/sh
# SOTE TECH DEMO shared install script
# this allows you to have the game playable under both Windows
# and Linux sharing save games and minimizing the disk space
# needed.
#
# Set here the directory where you extracted the game files
# that must be on a partition accessible by both Win and Linux.
# Watch out: write access needed, I suggest a FAT partition.
# I suppose that you run this shellscript from the directory
# itself, so i set it as "current directory" by default, but
# you can provide a full path like GAMEDIR="/mnt/shared/SOTE_TD/"
# if you prefer
GAMEDIR=.
#
# Set here the directory where you want the ags Linux engine
# to be installed. This must be on a typical Linux file system
# that supports symlinks (ext2, ext3...)
AGSDIR=~/bin/ags
#
### ok, this commands will be performed
mkdir -p $AGSDIR
cp ags linsetup patches.dat sharedplay.sh $AGSDIR
chmod +x $AGSDIR/ags $AGSDIR/sharedplay.sh
ln -f -s `pwd`/sote_td.exe $AGSDIR/ac2game.dat
ln -f -s `pwd`/sote_td.001 $AGSDIR/sote_td.001
ln -f -s `pwd`/sote_td.002 $AGSDIR/sote_td.002
pwd > $AGSDIR/installdir
echo
echo SOTE Shared install complete
echo Now just move to \"$AGSDIR\" and run \"sharedplay.sh\" to play.
echo