summaryrefslogtreecommitdiff
path: root/games/xscrabble/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'games/xscrabble/doinst.sh')
-rw-r--r--games/xscrabble/doinst.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/games/xscrabble/doinst.sh b/games/xscrabble/doinst.sh
new file mode 100644
index 0000000000..e3181a71a9
--- /dev/null
+++ b/games/xscrabble/doinst.sh
@@ -0,0 +1,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
+