summarylogtreecommitdiffstats
path: root/yumenikki-zh-cn.sh
blob: 249a76e28e781730f7c415f5c5d6ad7842acede9 (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