diff options
author | taoka <taoka@FreeBSD.org> | 1999-03-05 02:07:41 +0800 |
---|---|---|
committer | taoka <taoka@FreeBSD.org> | 1999-03-05 02:07:41 +0800 |
commit | 1bf5adbb3fd43b2a37894206fc38a068498b8d27 (patch) | |
tree | ac34c47c41a7d90548cad9bca22a569673b9b654 | |
parent | b000a8585f6695cc0409eaf9c930b00bfe13f222 (diff) | |
download | freebsd-ports-gnome-1bf5adbb3fd43b2a37894206fc38a068498b8d27.tar.gz freebsd-ports-gnome-1bf5adbb3fd43b2a37894206fc38a068498b8d27.tar.zst freebsd-ports-gnome-1bf5adbb3fd43b2a37894206fc38a068498b8d27.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
-rw-r--r-- | print/yatex/files/INSTALL.tmpl | 5 |
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 |