1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/print/yatex/files/INSTALL.tmpl
Satoshi Taoka 18aed621c2 moved japanese/yatex to print/yatex-mule (for Mule 2.3)
moved japanese/yatex-xemacs to print/yatex-xemacs-mule (for XEmacs20-mule)
added a new port: print/yatex-xemacs (for XEmacs19 XEmacs20)
1999-03-17 06:57:38 +00:00

51 lines
1.5 KiB
Bash

#!/bin/sh
pkgname=$1
BASENAME=${BASENAME:-%%BASENAME%%}
CP=${CP:-%%CP%%}
ECHO=${ECHO:-%%ECHO%%}
GREP=${GREP:-%%GREP%%}
SED=${SED:-%%SED%%}
TOUCH=${TOUCH:-%%TOUCH%%}
CUT=${CUT:-%%CUT%%}
DO_NADA=${DO_NADA:-%%DO_NADA%%}
CUT=/usr/bin/cut
EXPR=/bin/expr
infodir=${INFODIR:-%%INFODIR%%}
infofiles=${INFOFILES:-%%INFOFILES%%}
infonodes=${INFONODES:-%%INFONODES%%}
infonodeexps=${INFONODEEXPS:-%%INFONODEEXPS%%}
dirsection=${DIRSECTION:-%%DIRSECTION%%}
if [ "X$2" = X"POST-INSTALL" ]; then
count=1
# For example, the result of `cut ttt -d : -f 2` is ttt. Why?
infofiles=${infofiles}:
while ${DO_NADA}; do
if [ X`${ECHO} ${infofiles} | ${CUT} -d : -f $count` = X ]; then
break
fi
file=`${ECHO} ${infofiles} | ${CUT} -d : -f $count`
nodename=`${ECHO} ${infonodes} | ${CUT} -d : -f $count`
nodeexp=`${ECHO} ${infonodeexps} | ${CUT} -d : -f $count`
if [ ! "`${GREP} \"START-INFO-DIR-ENTRY\" ${infodir}/${file}`" ]; then
${ECHO} "INFO-DIR-SECTION ${dirsection}" \
>> ${infodir}/${file}
${ECHO} "START-INFO-DIR-ENTRY" >> ${infodir}/${file}
${ECHO} "* ${nodename}: (`${BASENAME} ${file}`). ${nodeexp}" \
>> ${infodir}/${file}
${ECHO} "END-INFO-DIR-ENTRY" >> ${infodir}/${file}
fi
count=`${EXPR} $count + 1`
done
${ECHO} "Adding entry for \"${pkgname}\" to ${infodir}/dir"
for file in `${ECHO} ${infofiles} | ${SED} "s,:, ,g"`; do
install-info ${infodir}/${file} ${infodir}/dir
done
exit 0
else
exit 0
fi