File: r-base-core.preinst

package info (click to toggle)
r-base 3.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 87,288 kB
  • sloc: ansic: 271,827; fortran: 99,804; makefile: 5,102; yacc: 5,065; sh: 4,968; tcl: 4,562; objc: 753; perl: 655; asm: 258; java: 31; sed: 9
file content (34 lines) | stat: -rw-r--r-- 678 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
33
34
#!/bin/sh
#
# preinst script for the Debian GNU/Linux r-base-core package
# This version written by Dirk Eddelbuettel <edd@debian.org>   

set -e

#DEBHELPER#
    
case "$1" in
    install|upgrade)
	# edd 06 Feb 2006 2.2.1-4 created this symlink, we now want a directory
    	if [ -h /usr/lib/R/share ]
	then
	    echo "Removing symbolic link /usr/lib/R/share"
	    rm /usr/lib/R/share
	fi
	# edd 27 Jul 2006 this is now a softlink but used to be a dir
	dir=/usr/share/doc/r-base-core/doc
    	if [ -d $dir ] && [ ! -h $dir ]
	then
	    rmdir $dir
	fi
    ;;
 
    abort-upgrade)
    ;;
 
    *)
        echo "preinst called with unknown argument \`$1'" >&2
    ;;
esac

exit 0