#!/bin/sh PKG_PREFIX=${PKG_PREFIX:-%%PREFIX%%} if [ $# -ne 2 ]; then echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2 exit 1 fi execs="mcstas mcformat" case $2 in DEINSTALL) if [ ! -f "${PKG_PREFIX}/bin" ]; then echo "Deinstalling links to executables in ${PKG_PREFIX}/bin."; for target in ${execs}; do rm ${PKG_PREFIX}/bin/${target}; done fi ;; esac exit 0