summarylogtreecommitdiffstats
path: root/yumenikki-en.sh
blob: 15b8f4328da7152a286085a9ad4a2b0ac0569333 (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 --encoding shift-jis || 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 --encoding shift-jis