Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3]: src/usr.sbin/etcupdate Pull up following revision(s) (request...



details:   https://anonhg.NetBSD.org/src/rev/8a1daeb38a27
branches:  netbsd-3
changeset: 577861:8a1daeb38a27
user:      riz <riz%NetBSD.org@localhost>
date:      Wed Mar 01 03:56:02 2006 +0000

description:
Pull up following revision(s) (requested by apb in ticket #1184):
        usr.sbin/etcupdate/etcupdate: revision 1.28
Fix default handling.  etcupdate with no "-s" flag
should act like "etcupdate -s /usr/src".
Approved by christos.

diffstat:

 usr.sbin/etcupdate/etcupdate |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r 6b9ee00748c6 -r 8a1daeb38a27 usr.sbin/etcupdate/etcupdate
--- a/usr.sbin/etcupdate/etcupdate      Wed Mar 01 03:55:18 2006 +0000
+++ b/usr.sbin/etcupdate/etcupdate      Wed Mar 01 03:56:02 2006 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: etcupdate,v 1.21.6.4 2006/03/01 03:55:18 riz Exp $
+# $NetBSD: etcupdate,v 1.21.6.5 2006/03/01 03:56:02 riz Exp $
 #
 # Copyright (c) 2001 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -479,7 +479,9 @@
 if ${BINARYTGZMODE}; then
        SRCDIR="${TEMPROOT}"
 fi
-if ${SOURCEMODE} && [ -x "${SRCDIR}" ]; then
+if ! ${SOURCEMODE} && ! ${BINARYMODE}; then
+       # default if no "-s" option was specified
+       SOURCEMODE=true
        SRCDIR=/usr/src
 fi
 if [ -z "${SRCDIR}" -o -z "${TEMPROOT}" ]; then



Home | Main Index | Thread Index | Old Index