Module Name: src
Committed By: jym
Date: Tue Sep 6 14:13:46 UTC 2011
Modified Files:
src/usr.sbin/postinstall: postinstall
Log Message:
Set $SRC_DIR to its default value at the beginning of main() so that
usage() can print the correct value even when called early.
To generate a diff of this commit:
cvs rdiff -u -r1.123 -r1.124 src/usr.sbin/postinstall/postinstall
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/postinstall/postinstall
diff -u src/usr.sbin/postinstall/postinstall:1.123 src/usr.sbin/postinstall/postinstall:1.124
--- src/usr.sbin/postinstall/postinstall:1.123 Tue Sep 6 14:08:05 2011
+++ src/usr.sbin/postinstall/postinstall Tue Sep 6 14:13:46 2011
@@ -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