Added scripts to the Debian package.
authorwellu <wellu@wellu.org>
Wed, 8 Oct 2008 17:17:30 +0000 (17:17 +0000)
committerwellu <wellu@wellu.org>
Wed, 8 Oct 2008 17:17:30 +0000 (17:17 +0000)
git-svn-id: file:///svnroot/speedometer/trunk@45 df364472-da61-43ef-8a67-511c89aa921b

debian/postinst [new file with mode: 0755]
debian/postrm [new file with mode: 0755]

diff --git a/debian/postinst b/debian/postinst
new file mode 100755 (executable)
index 0000000..e97479e
--- /dev/null
@@ -0,0 +1,10 @@
+#! /bin/sh
+
+gtk-update-icon-cache -f /usr/share/icons/hicolor
+
+oldversion="$2"
+if [ -z "$oldversion" ]; then
+       if [ -e /usr/bin/maemo-select-menu-location ]; then
+                maemo-select-menu-location speedometer.desktop
+        fi
+fi
diff --git a/debian/postrm b/debian/postrm
new file mode 100755 (executable)
index 0000000..74723e9
--- /dev/null
@@ -0,0 +1,6 @@
+#! /bin/sh
+
+if [ -e /usr/share/applications/hildon/speedometer.desktop ]; then
+       rm -rf  /usr/share/applications/hildon/speedometer.desktop
+fi
+