summaryrefslogtreecommitdiff
path: root/print/yatex/files/pkg-deinstall.in
diff options
context:
space:
mode:
Diffstat (limited to 'print/yatex/files/pkg-deinstall.in')
-rw-r--r--print/yatex/files/pkg-deinstall.in22
1 files changed, 22 insertions, 0 deletions
diff --git a/print/yatex/files/pkg-deinstall.in b/print/yatex/files/pkg-deinstall.in
new file mode 100644
index 000000000000..274fa86f185f
--- /dev/null
+++ b/print/yatex/files/pkg-deinstall.in
@@ -0,0 +1,22 @@
+#!/bin/sh
+# $FreeBSD$
+
+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