File: postinst

package info (click to toggle)
xgobi 19980413-3
  • links: PTS
  • area: non-free
  • in suites: slink
  • size: 3,532 kB
  • ctags: 4,195
  • sloc: ansic: 47,796; makefile: 861; sh: 60
file content (32 lines) | stat: -rw-r--r-- 754 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
#!/bin/sh
#
# postinst script for the Debian GNU/Linux acct package
#
# Initial version written by Douglas Bates <bates@stat.wisc.edu>
# This version written by Dirk Eddelbuettel <edd@debian.org>   

set -e

r_base_dir="/usr/lib/R"

case "$1" in
    configure)     
	# update R documentation if R is installed
	if [ -x ${r_base_dir}/etc/build-htmlpkglist ]
	then
	    cat ${r_base_dir}/library/*/TITLE > ${r_base_dir}/library/LibIndex
	    ${r_base_dir}/etc/build-htmlpkglist
	fi
        # update menus
        if test -x /usr/bin/update-menus
        then 
            update-menus
        fi
	#
       ;;
    abort-upgrade|abort-remove|abort-deconfigure)
        ;;
    *)
        echo "postinst called with unknown argument \`$1'" >&2
        ;;
esac