diff options
author | Satoshi Taoka <taoka@FreeBSD.org> | 1999-03-05 08:59:23 +0000 |
---|---|---|
committer | Satoshi Taoka <taoka@FreeBSD.org> | 1999-03-05 08:59:23 +0000 |
commit | bbf434ec1d9160cc60ecab684826e20018680d8c (patch) | |
tree | 38a4ae7c23cc0c9006e0f766dab2927346c4f5d1 /print/yatex | |
parent | Fix a critical bug; (diff) |
My modification (Rev. 1.3 -> 1.4) is incorrect, and
Mr. Okada's (PR: ports/10294) is right! Sorry!
Notes
Notes:
svn path=/head/; revision=17005
Diffstat (limited to 'print/yatex')
-rw-r--r-- | print/yatex/files/INSTALL.tmpl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/print/yatex/files/INSTALL.tmpl b/print/yatex/files/INSTALL.tmpl index 71fc99567642..ef43acea1305 100644 --- a/print/yatex/files/INSTALL.tmpl +++ b/print/yatex/files/INSTALL.tmpl @@ -22,8 +22,7 @@ OptionStart=";;; configuration options for ${pkgname}" OptionEnd=";;; End of configuration options for ${pkgname}" if [ "X$2" = X"POST-INSTALL" ]; then - if [ X"${sitestartdir}" != X ] && \ - [ ! -f ${sitestartdir}/site-start.el ]; then + if [ ! -f ${sitestartdir}/site-start.el ]; then ${TOUCH} ${sitestartdir}/site-start.el fi count=1 @@ -50,11 +49,12 @@ 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"${sitestartdir}" != X ] && \ - [ X"`${GREP} \"^${OptionStart}\" ${sitestartdir}/site-start.el`" = X ]; 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 + if [ X"${sitestartdir}" != 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%" | \ |