initial commit
[stockthis] / debian / postinst
1 #!/bin/sh
2 ## ----------------------------------------------------------------------
3 ## debian/postinst : postinstallation script for stockthis
4 ## ----------------------------------------------------------------------
5
6 ## ----------------------------------------------------------------------
7 set -e
8
9 MAEMO_SELECT_MENU=/usr/bin/maemo-select-menu-location
10
11 chmod +x /usr/bin/stockthis
12
13 oldversion="$2"
14 if [ -z "$oldversion" ]; then
15   if [ -f $MAEMO_SELECT_MENU ]
16   then 
17     maemo-select-menu-location stockthis.desktop
18   fi
19   gtk-update-icon-cache -f /usr/share/icons/hicolor  
20 fi
21
22 exit 0