aboutsummaryrefslogtreecommitdiffstats
path: root/print/yatex/files/DEINSTALL.tmpl
blob: 3691c577f747d638992c513acd11aa515f70a57b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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%% != 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