File: wmaker.postinst

package info (click to toggle)
wmaker 0.96.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,416 kB
  • sloc: ansic: 99,483; sh: 7,068; perl: 3,423; makefile: 1,647; 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