File: postrm

package info (click to toggle)
nextaw 0.5.1-22
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 1,776 kB
  • ctags: 3,781
  • sloc: ansic: 27,708; makefile: 624; yacc: 247; lex: 126; sh: 69
file content (21 lines) | stat: -rw-r--r-- 426 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh -e

NEXTAWDIR=/usr/X11R6/lib/neXtaw
LDSOCONF=/etc/ld.so.conf

case "$1" in
	remove)
		if [ -x /usr/sbin/update-xaw-wrappers ]; then
			/usr/sbin/update-xaw-wrappers
		fi

		mkdir $NEXTAWDIR 2>/dev/null || true
		ldconfig
	;;
	purge)
		tmpfile=`tempfile` || tmpfile=/etc/$LDSOCONF.temp.$$
		grep -v $NEXTAWDIR $LDSOCONF >$tmpfile && mv $tmpfile $LDSOCONF
		rmdir $NEXTAWDIR 2>/dev/null || true
		ldconfig
	;;		
esac