summaryrefslogtreecommitdiff
path: root/www/wwwoffle
diff options
context:
space:
mode:
authorsalo <salo>2004-07-10 23:23:45 +0000
committersalo <salo>2004-07-10 23:23:45 +0000
commit392e189116e0d0530051acfc7f43e7770177af72 (patch)
treea68223e921666b86534549c8a0ca9db57942de67 /www/wwwoffle
parent6d4877ad7cf4535f78933bb884d7c13881c84d1d (diff)
downloadpkgsrc-392e189116e0d0530051acfc7f43e7770177af72.tar.gz
Replace test -e with -f.
Addresses part of PR pkg/26235 by Georg Schwarz.
Diffstat (limited to 'www/wwwoffle')
-rw-r--r--www/wwwoffle/INSTALL12
1 files changed, 6 insertions, 6 deletions
diff --git a/www/wwwoffle/INSTALL b/www/wwwoffle/INSTALL
index c96398cb936..e4d77bdfe7f 100644
--- a/www/wwwoffle/INSTALL
+++ b/www/wwwoffle/INSTALL
@@ -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 @@ NEW_CONF_EXAMPLE="${PKG_PREFIX}/share/examples/wwwoffle.conf"
# 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 @@ fi
# 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 @@ then
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