summaryrefslogtreecommitdiff
path: root/games/xscrabble/doinst.sh
blob: e3181a71a9be86bf5d3a350188b54d4fab1c2ab4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
if [ -x /usr/bin/update-desktop-database ]; then
  /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi

for i in en fr ; do
  if [ -d var/games/scrabble/$i ]; then
    if [ ! -e var/games/scrabble/$i/scrabble_scores ]; then
      mv var/games/scrabble/$i/scrabble_scores.new var/games/scrabble/$i/scrabble_scores
    else
      rm -f var/games/scrabble/$i/scrabble_scores.new
    fi
  fi
done