freebsd-ports/print/yatex/files/DEINSTALL.tmpl
Satoshi Taoka 17450f8b83 (1) Fixed a problem hunging up the package-making system on bento
Pointed out: asami

(2) Modified to use variables defined in Mk/bsd.emacs.mk as many as possible.
2000-09-18 02:05:45 +00:00

22 lines
459 B
Bash

#!/bin/sh
pkgname=$1
CP=${CP:-%%CP%%}
ECHO=${ECHO:-%%ECHO%%}
GREP=${GREP:-%%GREP%%}
RM=${RM:-%%RM%%}
SED=${SED:-%%SED%%}
infodir=${INFODIR:-%%INFODIR%%}
infofiles=${INFOFILES:-%%INFOFILES%%}
if [ "X$2" = X"DEINSTALL" -a %%EMACS_NAME%% != xemacs ]; then
${ECHO} "Deleting entry for \"${pkgname}\" from ${infodir}/dir"
for file in `echo ${infofiles} | ${SED} "s,:, ,g"`; do
install-info --delete ${infodir}/${file} ${infodir}/dir
done
else
exit 0
fi