updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / pinball / pinball.install
blobe39f87dae8362d3ec3e72f149a704a88bffc7c22
1 post_install() {
2   touch var/games/pinball/{professor,tux}/highscores
3   chown root:games var/games/pinball/{professor,tux}/highscores
4   chmod 664 var/games/pinball/{professor,tux}/highscores
7 pre_upgrade() {
8   chown root:games var/games/pinball/{professor,tux}
9   chmod 775 var/games/pinball/{professor,tux}
10   cp var/games/pinball/professor/highscores var/games/pinball/professor/highscores.bak.pre_upgrade
11   cp var/games/pinball/tux/highscores var/games/pinball/tux/highscores.bak.pre_upgrade
14 post_upgrade() {
15   if [ -e var/games/pinball/professor/highscores.bak.pre_upgrade ]; then
16     mv var/games/pinball/professor/highscores.bak.pre_upgrade var/games/pinball/professor/highscores
17   fi
19   if [ -e var/games/pinball/tux/highscores.bak.pre_upgrade ]; then
20     mv var/games/pinball/tux/highscores.bak.pre_upgrade var/games/pinball/tux/highscores
21   fi
23     touch var/games/pinball/professor/highscores
24     chown root:games var/games/pinball/professor/highscores
25     chmod 664 var/games/pinball/professor/highscores
27     touch var/games/pinball/tux/highscores
28     chown root:games var/games/pinball/tux/highscores
29     chmod 664 var/games/pinball/tux/highscores
30  }