#!/bin/sh # # postinst script for the Debian GNU/Linux r-base-core package # This version originally written by Douglas Bates set -e #DEBHELPER# case "$1" in configure) if [ -x /usr/bin/paperconf ] then perl -pi -e \ '$P=`/usr/bin/paperconf`,chop $P,s:a4:$P: if /{R_PAPERSIZE/' /usr/bin/R fi if [ -x /usr/bin/update-menus ] then update-menus fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 ;; esac