File: r-doc-html.preinst

package info (click to toggle)
r-base 4.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 112,852 kB
  • sloc: ansic: 291,246; fortran: 111,889; javascript: 14,798; yacc: 6,154; sh: 5,689; makefile: 5,242; tcl: 4,562; perl: 963; objc: 791; f90: 758; asm: 258; java: 31; sed: 1
file content (32 lines) | stat: -rw-r--r-- 646 bytes parent folder | download | duplicates (15)
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
#
# preinst script for the Debian GNU/Linux r-doc-html package
# This version written by Dirk Eddelbuettel <edd@debian.org>   

set -e

#DEBHELPER#
    
case "$1" in
    install|upgrade)
	# edd 05 Jul 2006  from with the /usr/lib -> /usr/share transition
	# edd 12 Aug 2006  make sure it is a symlink and not a directory
	# edd 29 Aug 2006  make sure $dir does not contain trailing slash
	dir=/usr/share/doc/r-doc-html/manual
    	if [ -h $dir ]
	then
	    echo "Removing symbolic link $dir"
	    rm $dir
	fi
    ;;
 
    abort-upgrade)
    ;;
 
    *)
        echo "preinst called with unknown argument \`$1'" >&2
    ;;
esac

exit 0