File: postinst

package info (click to toggle)
pdmenu 1.2.85
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 828 kB
  • ctags: 244
  • sloc: sh: 2,770; ansic: 2,032; makefile: 138; perl: 58
file content (17 lines) | stat: -rw-r--r-- 417 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
set -e

if [ "$1" = configure ] && dpkg --compare-versions "$2" lt 1.2.81; then
	rm -f /var/lib/pdmenu/.pdmenurc_auto /var/lib/pdmenu/pdmenurc_auto	
fi

# Handle the two menu methods installed by hand.
for inst in /etc/menu-methods/pdmenu-vc /etc/menu-methods/pdmenu-x11; do
	if [ -x /usr/bin/update-menus ] && [ -f $inst ] ; then
		chmod a+x $inst
		# update-menus will be run below
	fi
done

#DEBHELPER#