pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/wwwoffle Replace test -e with -f.
details: https://anonhg.NetBSD.org/pkgsrc/rev/8a851ee0f69d
branches: trunk
changeset: 477890:8a851ee0f69d
user: salo <salo%pkgsrc.org@localhost>
date: Sat Jul 10 23:23:45 2004 +0000
description:
Replace test -e with -f.
Addresses part of PR pkg/26235 by Georg Schwarz.
diffstat:
www/opera7/files/opera.sh | 2 +-
www/wwwoffle/INSTALL | 12 ++++++------
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (58 lines):
diff -r ca3cd499bcab -r 8a851ee0f69d www/opera7/files/opera.sh
--- a/www/opera7/files/opera.sh Sat Jul 10 23:17:34 2004 +0000
+++ b/www/opera7/files/opera.sh Sat Jul 10 23:23:45 2004 +0000
@@ -6,7 +6,7 @@
mkdir -p $OPERADIR || exit 1
for FILE in $OPERADIR/opera6.ini $OPERADIR/opera.ini
do
- if [ -e ${FILE} ]
+ if [ -f ${FILE} ]
then
if grep -q '^Synchronous DNS Lookup=0$' ${FILE}
then
diff -r ca3cd499bcab -r 8a851ee0f69d www/wwwoffle/INSTALL
--- a/www/wwwoffle/INSTALL Sat Jul 10 23:17:34 2004 +0000
+++ b/www/wwwoffle/INSTALL Sat Jul 10 23:23:45 2004 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: INSTALL,v 1.4 2002/11/08 15:34:21 fredb Exp $
+# $NetBSD: INSTALL,v 1.5 2004/07/10 23:23:45 salo Exp $
if [ X"${2}" != XPOST-INSTALL ]
then
@@ -13,7 +13,7 @@
# Allow ${CONFDIR} to be set in the environment, so that this unsubstituted
# script can be run directly from the "pkgsrc" subdirectory via `make finish'.
-if [ ! -e "${CONFDIR}"/wwwoffle.conf ]
+if [ ! -f "${CONFDIR}"/wwwoffle.conf ]
then
CONFDIR="@PKG_SYSCONFDIR@"
fi
@@ -26,13 +26,13 @@
# If there's no configuration file in the new ${PKG_SYSCONFDIR}, search
# possible former locations for the old file. If none found, install a
# fresh one.
-if [ ! -e "${CONFDIR}/wwwoffle.conf" ]
+if [ ! -f "${CONFDIR}/wwwoffle.conf" ]
then
- if [ -e "${PKG_PREFIX}/etc/wwwoffle.conf" ]
+ if [ -f "${PKG_PREFIX}/etc/wwwoffle.conf" ]
then
conf_candidates="${PKG_PREFIX}/etc/wwwoffle.conf"
fi
- if [ -e /etc/wwwoffle.conf ]
+ if [ -f /etc/wwwoffle.conf ]
then
conf_candidates="$conf_candidates /etc/wwwoffle.conf"
fi
@@ -46,7 +46,7 @@
fi
# The "wwwoffle-upgrade-config" script needs the template to be in ${CONFDIR}.
-if [ ! -e "${CONFDIR}/wwwoffle.conf.install" ]
+if [ ! -f "${CONFDIR}/wwwoffle.conf.install" ]
then
cp "${NEW_CONF_EXAMPLE}" "${CONFDIR}/wwwoffle.conf.install"
fi
Home |
Main Index |
Thread Index |
Old Index