Rev 23869 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
#!/bin/sh## postinst script for the Debian GNU/Linux r-base-core package# This version originally written by Douglas Bates <bates@stat.wisc.edu>set -e#DEBHELPER#case "$1" inconfigure)if [ -x /usr/bin/paperconf ]thenperl -pi -e \'$P=`/usr/bin/paperconf`,chop $P,s:a4:$P: if /{R_PAPERSIZE/' /usr/bin/Rfiif [ -x /usr/bin/update-menus ]thenupdate-menusfi# edd 03 Apr 2003 cf Section 10.1.2 of Debian Policyif [ ! -e /usr/local/lib/R ]thenif mkdir /usr/local/lib/R 2>/dev/nullthenchown root:staff /usr/local/lib/Rchmod 2775 /usr/local/lib/Rfifiif [ ! -e /usr/local/lib/R/site-library ]thenif mkdir /usr/local/lib/R/site-library 2>/dev/nullthenchown root:staff /usr/local/lib/R/site-librarychmod 2775 /usr/local/lib/R/site-libraryfifi;;abort-upgrade|abort-remove|abort-deconfigure);;*)echo "postinst called with unknown argument \`$1'" >&2;;esac