File: postrm

package info (click to toggle)
sharefont 0.10-7
  • links: PTS
  • area: non-free
  • in suites: hamm, potato, slink
  • size: 956 kB
  • ctags: 3
  • sloc: makefile: 37; sh: 23
file content (10 lines) | stat: -rw-r--r-- 258 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#! /bin/sh

if [ "$1" = "purge" -a -f /etc/X11/XF86Config ]; then
	if grep -q '^    FontPath.*sharefont/' /etc/X11/XF86Config; then
		cp /etc/X11/XF86Config /tmp/$$
		sed -e "/    FontPath.*sharefont/d" \
			</tmp/$$ >/etc/X11/XF86Config
		rm /tmp/$$
	fi
fi