Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/postinstall Set $SRC_DIR to its default value at th...



details:   https://anonhg.NetBSD.org/src/rev/ae36645a9cb0
branches:  trunk
changeset: 769313:ae36645a9cb0
user:      jym <jym%NetBSD.org@localhost>
date:      Tue Sep 06 14:13:46 2011 +0000

description:
Set $SRC_DIR to its default value at the beginning of main() so that
usage() can print the correct value even when called early.

diffstat:

 usr.sbin/postinstall/postinstall |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r f1f7ac9c0bf9 -r ae36645a9cb0 usr.sbin/postinstall/postinstall
--- a/usr.sbin/postinstall/postinstall  Tue Sep 06 14:08:05 2011 +0000
+++ b/usr.sbin/postinstall/postinstall  Tue Sep 06 14:13:46 2011 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: postinstall,v 1.123 2011/09/06 14:08:05 jym Exp $
+# $NetBSD: postinstall,v 1.124 2011/09/06 14:13:46 jym Exp $
 #
 # Copyright (c) 2002-2008 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -1649,6 +1649,7 @@
 {
        TGZLIST=                # quoted list list of tgz files
        SRC_ARGLIST=            # quoted list of one or more "-s" args
+       SRC_DIR="${SRC_ARG}"    # set default value for early usage()
        N_SRC_ARGS=0            # number of "-s" args
        TGZMODE=false           # true if "-s" specifies a tgz file
        DIRMODE=false           # true if "-s" specified a directory



Home | Main Index | Thread Index | Old Index