File: postinst

package info (click to toggle)
xaw95 1.1-4.4
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 2,272 kB
  • ctags: 3,855
  • sloc: ansic: 28,212; makefile: 1,825; yacc: 247; lex: 126; sh: 70
file content (33 lines) | stat: -rw-r--r-- 959 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh

set -e

XAWREPLDIR=/usr/X11R6/lib/Xaw95
LDSOCONF=/etc/ld.so.conf

case "$1" in
        configure)
		tmpfile=`tempfile` || tmpfile=/etc/`basename $0`.$$

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

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

cat <<'EOF'
The Xaw95 library is now installed.  Note that if you did install the Xaw3d
library, you will have to remove the default resources you may have been
set to choose the 3d look of the Athena widgets because these defaults will
override the builtin Windows 95 look of the widgets in the Xaw95 library.

If you want to link your programmes statically against the libXaw95 library,
change "-lXaw" to "-lXaw95" on the gcc commandline when linking.
EOF