# arg 1: the new package version post_install() { echo "Updating TeX tree..." mktexlsr } # arg 1: the new package version # arg 2: the old package version post_upgrade() { post_install $1 } # arg 1: the old package version post_remove() { post_install $1 } op=$1 shift $op $*