blob: c931e4cd6ff9c6933b275fb455b2ef8fc3e3a5d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
NAME=`basename $0`
VER=`pacman -Q $NAME | sed "s:$NAME ::g"`
mkdir -p ~/.$NAME
cd ~/.$NAME
export RPG2K3_RTP_PATH=/opt/rpg2003-rtp
[ "z"`cat ~/.$NAME/game.ver` = "z"$VER ] && exec easyrpg-player || find -type l | while read line
do rm $line;done
echo $VER > ~/.$NAME/game.ver
cd /opt/$NAME
find . -type d | while read line;do mkdir -p ~/.$NAME/$line;done
find . -type f | while read line
do
[ -f ~/.$NAME/$line ] || ln -s /opt/$NAME/$line ~/.$NAME/$line
done
cd ~/.$NAME
exec easyrpg-player
|