File: nextaw.postinst

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 (20 lines) | stat: -rw-r--r-- 409 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
#! /bin/sh -e

NEXTAWDIR=/usr/lib/libc5-compat/neXtaw
LDSOCONF=/etc/ld.so.conf

case "$1" in
	configure)
		tmpfile=`tempfile` || tmpfile=/etc/$LDSOCONF.temp.$$

		if ! grep -q $NEXTAWDIR $LDSOCONF ; then 
			(echo $NEXTAWDIR; grep -v $NEXTAWDIR $LDSOCONF) >$tmpfile && \
				mv $tmpfile $LDSOCONF
		fi
		ldconfig

		if [ -x /usr/sbin/update-xaw-wrappers ]; then
			/usr/sbin/update-xaw-wrappers
		fi
	;;
esac