File: postrm

package info (click to toggle)
xgobi 19991006-1
  • links: PTS
  • area: non-free
  • in suites: potato
  • size: 3,788 kB
  • ctags: 4,525
  • sloc: ansic: 51,806; makefile: 576; asm: 367; sh: 52
file content (36 lines) | stat: -rw-r--r-- 719 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
34
35
36
#!/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

#DEBHELPER#

case "$1" in
    remove|purge)
	# update R documentation if R is installed
	if [ -x /usr/lib/R/bin/build-help ]
	then
	    (cd /usr/lib/R/library; \
		cat */TITLE > LibIndex; \
		../bin/build-help --htmllist)
	fi
#         # update menus
#         if test -x /usr/bin/update-menus
#         then 
#             update-menus
#         fi
	;;
    upgrade)
	;;
    failed-upgrade|abort-install|abort-upgrade|disappear)
	;;
    *)
	echo "postrm called with unknown argument \`$1'" >&2
	;;
esac

exit 0