aboutsummaryrefslogtreecommitdiff
path: root/print/yatex
diff options
context:
space:
mode:
authorSatoshi Taoka <taoka@FreeBSD.org>1999-03-04 18:07:41 +0000
committerSatoshi Taoka <taoka@FreeBSD.org>1999-03-04 18:07:41 +0000
commit94a9e8396623262d14bf17221c364e55fc673966 (patch)
treeba57e4c83f9ba5b54785b62d642b41b3d7a3ae32 /print/yatex
parent305b3e1d1057fd8afce170ef328363777f841073 (diff)
downloadports-94a9e8396623262d14bf17221c364e55fc673966.tar.gz
ports-94a9e8396623262d14bf17221c364e55fc673966.zip
fix two problems about the shell script to modify site-start.el;
* create a empty file site-start.el in / * do not modify site-start.el The next PR is about the later problem. But the patch cannot fix it. PR: 10294 Submitted by: hokada@isl.melco.co.jp
Notes
Notes: svn path=/head/; revision=16997
Diffstat (limited to 'print/yatex')
-rw-r--r--print/yatex/files/INSTALL.tmpl5
1 files changed, 3 insertions, 2 deletions
diff --git a/print/yatex/files/INSTALL.tmpl b/print/yatex/files/INSTALL.tmpl
index 20b9036c31a0..71fc99567642 100644
--- a/print/yatex/files/INSTALL.tmpl
+++ b/print/yatex/files/INSTALL.tmpl
@@ -22,7 +22,8 @@ OptionStart=";;; configuration options for ${pkgname}"
OptionEnd=";;; End of configuration options for ${pkgname}"
if [ "X$2" = X"POST-INSTALL" ]; then
- if [ ! -f ${sitestartdir}/site-start.el ]; then
+ if [ X"${sitestartdir}" != X ] && \
+ [ ! -f ${sitestartdir}/site-start.el ]; then
${TOUCH} ${sitestartdir}/site-start.el
fi
count=1
@@ -50,7 +51,7 @@ if [ "X$2" = X"POST-INSTALL" ]; then
install-info ${infodir}/${file} ${infodir}/dir
done
if [ X"${sitestartdir}" != X ] && \
- [ "`${GREP} \"^${OptionStart}\" ${sitestartdir}/site-start.el`" ]; then
+ [ 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