aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/maemo/debian/postinst
diff options
context:
space:
mode:
authorTarek Soliman2011-06-29 15:41:49 -0500
committerTarek Soliman2011-09-22 22:07:43 -0500
commit9633515e2325115789f4d135a6485fad91e7781c (patch)
tree83248dadb3dd48a5f1fb2973bbf9bb6c1aa8c16c /backends/platform/maemo/debian/postinst
parent775f26555499ff1d8a1e0e6c479042b6b81304e3 (diff)
downloadscummvm-rg350-9633515e2325115789f4d135a6485fad91e7781c.tar.gz
scummvm-rg350-9633515e2325115789f4d135a6485fad91e7781c.tar.bz2
scummvm-rg350-9633515e2325115789f4d135a6485fad91e7781c.zip
MAEMO: adding debian directory
This is the original debian directory from the 1.2.0 maemo port
Diffstat (limited to 'backends/platform/maemo/debian/postinst')
-rw-r--r--backends/platform/maemo/debian/postinst19
1 files changed, 19 insertions, 0 deletions
diff --git a/backends/platform/maemo/debian/postinst b/backends/platform/maemo/debian/postinst
new file mode 100644
index 0000000000..89b579a3f6
--- /dev/null
+++ b/backends/platform/maemo/debian/postinst
@@ -0,0 +1,19 @@
+#! /bin/sh
+if [ "$1" = "configure" ] ; then
+OSVER=$OSSO_VERSION
+[ -z "$OSVER" -a -f /etc/osso_software_version ] && OSVER=`cat /etc/osso_software_version`
+OSVER=`echo $OSVER | cut -d _ -f 2`
+case $OSVER in
+ 2006*|2007*)
+ #nothing to do
+ true
+ ;;
+ *)
+ #ugly trick, until this icon is removed big icon in menu does not show
+ [ -f /usr/share/icons/scummvm.xpm ] && rm /usr/share/icons/scummvm.xpm
+ ;;
+esac
+ [ -x /usr/bin/gtk-update-icon-cache ] && /usr/bin/gtk-update-icon-cache /usr/share/icons/hicolor
+ [ -x /usr/bin/maemo-select-menu-location -a -z "$2" ] && /usr/bin/maemo-select-menu-location scummvm.desktop tana_fi_games
+fi
+exit 0