File: r-base-core.prerm

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 (26 lines) | stat: -rw-r--r-- 700 bytes parent folder | download | duplicates (11)
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
#!/bin/sh
#
# prerm 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
    remove|purge)
	# edd 03 Apr 2003  cf Section 10.1.2 of Debian Policy
	rmdir /usr/local/lib/R/site-library 2>/dev/null || true
	rmdir /usr/local/lib/R/ 2>/dev/null || true
	# edd 10 May 2009  cf Section 10.7.3 of Debian Policy
	#                  and well as #527618
	rm /etc/R/Renviron 2>/dev/null || true
	ucf --purge /etc/R/Renviron
	ucfr --purge r-base-core /etc/R/Renviron
    ;;
    upgrade|abort-upgrade|abort-remove|abort-deconfigure)
    ;;
    *)
	echo "prerm called with unknown argument \`$1'" >&2
    ;;
esac