Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/sets Instead of printing "./foo/bar optional" for im...
details: https://anonhg.NetBSD.org/src/rev/425f2e8c2d31
branches: trunk
changeset: 586860:425f2e8c2d31
user: apb <apb%NetBSD.org@localhost>
date: Wed Jan 04 13:46:13 2006 +0000
description:
Instead of printing "./foo/bar optional" for implicitly required
directories, print "./foo/bar optional type=dir".
Reviewed by agc
diffstat:
distrib/sets/getdirs.awk | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (25 lines):
diff -r d3485cd0cd65 -r 425f2e8c2d31 distrib/sets/getdirs.awk
--- a/distrib/sets/getdirs.awk Wed Jan 04 13:40:23 2006 +0000
+++ b/distrib/sets/getdirs.awk Wed Jan 04 13:46:13 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: getdirs.awk,v 1.2 2002/05/19 13:32:44 lukem Exp $
+# $NetBSD: getdirs.awk,v 1.3 2006/01/04 13:46:13 apb Exp $
#
# Copyright (c) 2002 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -38,6 +38,7 @@
function dirname(file) \
{
+ # no need to worry about args that do not contain at least one "/"
gsub(/\/[^\/]+$/, "", file)
return file
}
@@ -72,6 +73,6 @@
{
for (file in dirs) {
if (! (file in items))
- print file " optional"
+ print file " optional type=dir"
}
}
Home |
Main Index |
Thread Index |
Old Index