diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 1998-08-14 00:16:07 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 1998-08-14 00:16:07 +0000 |
commit | 05ec898c2ce40681d7a8daf66a0df6ae10950eb4 (patch) | |
tree | 923b59b25f376464e61e2da12aead9d260ce232c /print/yatex/files | |
parent | remove NO_LATEST_LINK - this port not conflicts with existen ncftp* (diff) |
Yet Another LaTeX mode on Emacs (including another html-mode)
PR: ports/4412
Submitted by: Satoshi Taoka <taoka@infonets.hiroshima-u.ac.jp>
Notes
Notes:
svn path=/head/; revision=12509
Diffstat (limited to 'print/yatex/files')
-rw-r--r-- | print/yatex/files/DEINSTALL.tmpl | 32 | ||||
-rw-r--r-- | print/yatex/files/INSTALL.tmpl | 66 |
2 files changed, 98 insertions, 0 deletions
diff --git a/print/yatex/files/DEINSTALL.tmpl b/print/yatex/files/DEINSTALL.tmpl new file mode 100644 index 000000000000..f81af13e6413 --- /dev/null +++ b/print/yatex/files/DEINSTALL.tmpl @@ -0,0 +1,32 @@ +#!/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%} +elispdir=${ELISPDIR:-%ELISPDIR%} + +OptionStart=";;; configuration options for ${pkgname}" +OptionEnd=";;; End of configuration options for ${pkgname}" + +if [ "X$2" = X"DEINSTALL" ]; 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 + if [ "`grep \"^${OptionStart}\" ${elispdir}/site-start.el`" ]; then + ${ECHO} "Deleting entry for \"${pkgname}\" from ${elispdir}/site-start.el" + ${SED} -e "/^${OptionStart}/,/^${OptionEnd}/d" \ + ${elispdir}/site-start.el > ${elispdir}/site-start.el.bak + ${CP} ${elispdir}/site-start.el.bak ${elispdir}/site-start.el + ${RM} ${elispdir}/site-start.el.bak + fi +else + exit 0 +fi diff --git a/print/yatex/files/INSTALL.tmpl b/print/yatex/files/INSTALL.tmpl new file mode 100644 index 000000000000..7ecae01e18fc --- /dev/null +++ b/print/yatex/files/INSTALL.tmpl @@ -0,0 +1,66 @@ +#!/bin/sh + +pkgname=$1 + +BASENAME=${BASENAME:-%BASENAME%} +CP=${CP:-%CP%} +ECHO=${ECHO:-%ECHO%} +GREP=${GREP:-%GREP%} +SED=${SED:-%SED%} +TOUCH=${TOUCH:-%TOUCH%} +DO_NADA=${DO_NADA:-%DO_NADA%} + +infodir=${INFODIR:-%INFODIR%} +infofiles=${INFOFILES:-%INFOFILES%} +infonodes=${INFONODES:-%INFONODES%} +infonodeexps=${INFONODEEXPS:-%INFONODEEXPS%} +elispdir=${ELISPDIR:-%ELISPDIR%} +dirsection=${DIRSECTION:-%DIRSECTION%} + +OptionStart=";;; configuration options for ${pkgname}" +OptionEnd=";;; End of configuration options for ${pkgname}" + +if [ "X$2" = X"POST-INSTALL" ]; then + if [ ! -f ${elispdir}/site-start.el ]; then + ${TOUCH} ${elispdir}/site-start.el + fi + 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 + if [ X'%ADDSITESTART%' != X ]; then + if [ "`${GREP} \"^${OptionStart}\" ${elispdir}/site-start.el`" ]; then + ${SED} -e "/^${OptionStart}/,/^${OptionEnd}/d" \ + ${elispdir}/site-start.el > ${elispdir}/site-start.el.bak + ${CP} ${elispdir}/site-start.el.bak ${elispdir}/site-start.el + fi + ${ECHO} "Adding entry for \"${pkgname}\" to ${elispdir}/site-start.el" + ${ECHO} "${OptionStart}" >> ${elispdir}/site-start.el + /usr/bin/printf "%ADDSITESTART%" | \ + ${SED} "s/^ //" >> ${elispdir}/site-start.el + ${ECHO} "${OptionEnd}" >> ${elispdir}/site-start.el + fi + exit 0 +else + exit 0 +fi |