diff options
-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%" | \ |