File: wmaker.postinst

package info (click to toggle)
wmaker 0.95.9-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 15,020 kB
  • sloc: ansic: 98,324; sh: 6,572; perl: 3,422; makefile: 1,490; lisp: 219; python: 34
file content (14 lines) | stat: -rw-r--r-- 385 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
set -e
#DEBHELPER#

# run after debhelper code, which removes menu-methods.
if [ "$1" = "configure" ] &&
	[ x"$2" != "x" ] &&
	test -e /etc/GNUstep/Defaults/menu.hook &&
	dpkg --compare-versions "$2" '<<' '0.95.8-2~' ; then
	if head -n1 /etc/GNUstep/Defaults/menu.hook |
	grep -q 'Automatically generated file. Do not edit' ; then
		rm /etc/GNUstep/Defaults/menu.hook
	fi
fi