diff options
author | taoka <taoka@FreeBSD.org> | 1999-03-05 08:59:23 +0000 |
---|---|---|
committer | taoka <taoka@FreeBSD.org> | 1999-03-05 08:59:23 +0000 |
commit | b95404347669790b4c86cfdab335725392771bde (patch) | |
tree | 0ed9c0cbfcb5475e895ccf38825ccf7e9d6cd74c /print/yatex/files | |
parent | b9d4b0d2d500519a416a1e51d650db745f8007c9 (diff) | |
download | FreeBSD-ports-b95404347669790b4c86cfdab335725392771bde.zip FreeBSD-ports-b95404347669790b4c86cfdab335725392771bde.tar.gz |
My modification (Rev. 1.3 -> 1.4) is incorrect, and
Mr. Okada's (PR: ports/10294) is right! Sorry!
Diffstat (limited to 'print/yatex/files')
-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 71fc995..ef43ace 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%" | \ |