aboutsummaryrefslogtreecommitdiff
path: root/print/yatex/files
diff options
context:
space:
mode:
authorSatoshi Taoka <taoka@FreeBSD.org>1999-03-05 08:59:23 +0000
committerSatoshi Taoka <taoka@FreeBSD.org>1999-03-05 08:59:23 +0000
commitbbf434ec1d9160cc60ecab684826e20018680d8c (patch)
tree38a4ae7c23cc0c9006e0f766dab2927346c4f5d1 /print/yatex/files
parent40b3ee8a7fc609d268acf30f82e500409528331b (diff)
downloadports-bbf434ec1d9160cc60ecab684826e20018680d8c.tar.gz
ports-bbf434ec1d9160cc60ecab684826e20018680d8c.zip
Notes
Diffstat (limited to 'print/yatex/files')
-rw-r--r--print/yatex/files/INSTALL.tmpl14
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%" | \