Le 05/04/2011 23:24, Miklos Vajna a écrit : > On Tue, Apr 05, 2011 at 02:26:56PM +0200, Sebastien VINCENT > <[email protected]> wrote: >> scores=( 'gweled.Normal.scores' 'gweled.Timed.scores') >> >> post_install() >> { >> echo -n "updating hicolor icon cache..." >> if gtk-update-icon-cache -f -t /usr/share/icons/hicolor > /dev/null >> 2>&1 ; then >> echo " done." >> else >> echo " failed." >> fi >> # For Gnome-minimal ( /var/games does not exists) >> if [ ! -d /var/games ]; then >> mkdir /var/games >> fi >> #Create the File >> for score in "${scores[@]}" ; do >> touch /var/games/$score >> chown root:users /var/games/${score} >> chmod 664 /var/games/${score} >> done > Hi, > > What's the motivation behind creating these files install-time, raither > than inside build(), build-time? > > Thanks. > > > _______________________________________________ > Frugalware-devel mailing list > [email protected] > http://frugalware.org/mailman/listinfo/frugalware-devel Hi,
I created these files in the install because if you put them in the build, each upgrade will reset the score files blank when the goal is to keep the scores of the game. Sébastien VINCENT aka Baste
_______________________________________________ Frugalware-devel mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-devel
