initial commit
[stockthis] / debian / postinst
diff --git a/debian/postinst b/debian/postinst
new file mode 100755 (executable)
index 0000000..f6557ee
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/sh
+## ----------------------------------------------------------------------
+## debian/postinst : postinstallation script for stockthis
+## ----------------------------------------------------------------------
+
+## ----------------------------------------------------------------------
+set -e
+
+MAEMO_SELECT_MENU=/usr/bin/maemo-select-menu-location
+
+chmod +x /usr/bin/stockthis
+
+oldversion="$2"
+if [ -z "$oldversion" ]; then
+  if [ -f $MAEMO_SELECT_MENU ]
+  then 
+    maemo-select-menu-location stockthis.desktop
+  fi
+  gtk-update-icon-cache -f /usr/share/icons/hicolor  
+fi
+
+exit 0