diff options
author | itojun <itojun@FreeBSD.org> | 1998-11-20 18:19:10 +0000 |
---|---|---|
committer | itojun <itojun@FreeBSD.org> | 1998-11-20 18:19:10 +0000 |
commit | 57c16b9cb0fa4dfecb5c856885e9b7f1abe9e64c (patch) | |
tree | a563a43928be6e34dc48bb5caff779672767e8ae /print/yatex/files | |
parent | 8049358726f1900a7c4a62166e2bf66152f1bab1 (diff) | |
download | FreeBSD-ports-57c16b9cb0fa4dfecb5c856885e9b7f1abe9e64c.zip FreeBSD-ports-57c16b9cb0fa4dfecb5c856885e9b7f1abe9e64c.tar.gz |
- updated to use version 1.66.
PR: 8752
Submitted by: Satoshi Taoka <taoka@infonets.hiroshima-u.ac.jp> (= maintainer)
Diffstat (limited to 'print/yatex/files')
-rw-r--r-- | print/yatex/files/DEINSTALL.tmpl | 3 | ||||
-rw-r--r-- | print/yatex/files/INSTALL.tmpl | 21 |
2 files changed, 12 insertions, 12 deletions
diff --git a/print/yatex/files/DEINSTALL.tmpl b/print/yatex/files/DEINSTALL.tmpl index 30807e5..169e155 100644 --- a/print/yatex/files/DEINSTALL.tmpl +++ b/print/yatex/files/DEINSTALL.tmpl @@ -21,7 +21,8 @@ if [ "X$2" = X"DEINSTALL" ]; then for file in `echo ${infofiles} | ${SED} "s,:, ,g"`; do install-info --delete ${infodir}/${file} ${infodir}/dir done - if [ "`grep \"^${OptionStart}\" ${sitestartdir}/site-start.el`" ]; then + if [ X"${sitestartdir}" != X ] && \ + [ "`grep \"^${OptionStart}\" ${sitestartdir}/site-start.el`" ]; then ${ECHO} "Deleting entry for \"${pkgname}\" from ${sitestartdir}/site-start.el" ${SED} -e "/^${OptionStart}/,/^${OptionEnd}/d" \ ${sitestartdir}/site-start.el > ${sitestartdir}/site-start.el.bak diff --git a/print/yatex/files/INSTALL.tmpl b/print/yatex/files/INSTALL.tmpl index f3dea6f..20b9036 100644 --- a/print/yatex/files/INSTALL.tmpl +++ b/print/yatex/files/INSTALL.tmpl @@ -49,17 +49,16 @@ if [ "X$2" = X"POST-INSTALL" ]; then for file in `${ECHO} ${infofiles} | ${SED} "s,:, ,g"`; do install-info ${infodir}/${file} ${infodir}/dir done - if [ X'%ADDSITESTART%' != X ]; then - if [ "`${GREP} \"^${OptionStart}\" ${sitestartdir}/site-start.el`" ]; then - ${SED} -e "/^${OptionStart}/,/^${OptionEnd}/d" \ - ${sitestartdir}/site-start.el > ${sitestartdir}/site-start.el.bak - ${CP} ${sitestartdir}/site-start.el.bak ${sitestartdir}/site-start.el - fi - ${ECHO} "Adding entry for \"${pkgname}\" to ${sitestartdir}/site-start.el" - ${ECHO} "${OptionStart}" >> ${sitestartdir}/site-start.el - /usr/bin/printf "%ADDSITESTART%" | \ - ${SED} "s/^ //" >> ${sitestartdir}/site-start.el - ${ECHO} "${OptionEnd}" >> ${sitestartdir}/site-start.el + if [ X"${sitestartdir}" != X ] && \ + [ "`${GREP} \"^${OptionStart}\" ${sitestartdir}/site-start.el`" ]; then + ${SED} -e "/^${OptionStart}/,/^${OptionEnd}/d" \ + ${sitestartdir}/site-start.el > ${sitestartdir}/site-start.el.bak + ${CP} ${sitestartdir}/site-start.el.bak ${sitestartdir}/site-start.el + ${ECHO} "Adding entry for \"${pkgname}\" to ${sitestartdir}/site-start.el" + ${ECHO} "${OptionStart}" >> ${sitestartdir}/site-start.el + /usr/bin/printf "%ADDSITESTART%" | \ + ${SED} "s/^ //" >> ${sitestartdir}/site-start.el + ${ECHO} "${OptionEnd}" >> ${sitestartdir}/site-start.el fi exit 0 else |