wok-4.x rev 3370

Childsplay: Add post_install()
author Claudinei Pereira <claudinei@slitaz.org>
date Thu Jun 11 19:05:25 2009 +0000 (2009-06-11)
parents 56ae9173bddb
children f2dca61f82f8
files childsplay/receipt
line diff
     1.1 --- a/childsplay/receipt	Thu Jun 11 23:58:16 2009 +0200
     1.2 +++ b/childsplay/receipt	Thu Jun 11 19:05:25 2009 +0000
     1.3 @@ -38,3 +38,16 @@
     1.4  			$fs/usr/share/locale/$lang/LC_MESSAGES
     1.5  	done
     1.6  }
     1.7 +
     1.8 +# Remove the score file generated and point it to /var/games
     1.9 +post_install ()
    1.10 +{	
    1.11 +	VARDIR="/var/games"
    1.12 +	DATADIR="/usr/share/childsplay/Data"
    1.13 +	SCOREFILE="childsplay.score"
    1.14 +	if [ -f $VARDIR/$SCOREFILE ] 
    1.15 +	then
    1.16 +		rm $DATADIR/$SCOREFILE
    1.17 +		ln -s $VARDIR/$SCOREFILE $DATADIR/$SCOREFILE
    1.18 +	fi
    1.19 +}