add MTREE keyword, which just outputs its args "as is" for mode=mtree

This commit is contained in:
lukem 2002-03-07 01:36:34 +00:00
parent 1d228ae84c
commit a4fb7ad013
1 changed files with 15 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: parselist.awk,v 1.5 2002/03/06 04:47:58 lukem Exp $
# $NetBSD: parselist.awk,v 1.6 2002/03/07 01:36:34 lukem Exp $
#
# Copyright (c) 2002 The NetBSD Foundation, Inc.
# All rights reserved.
@ -80,6 +80,8 @@
#
# M P LINK src d1 [d2 ...] hard link src to d1, d2, ...
#
# M MTREE arg1 [...] output arguments `as-is' to specfile
#
# C M P PROG prog [links...] program(s) to crunch/mtree/populate.
# for M and P, the first prog listed
# is copied from ${OBJDIR}/${CRUNCHBIN}
@ -256,6 +258,18 @@ $1 == "CMD" \
next;
}
$1 == "MTREE" \
{
if (NF < 2)
err("Usage: MTREE ...");
if (mode == "mtree") {
sub(/^[^ \t]+[ \t]+/, ""); # strip first word ("MTREE")
print;
}
next;
}
{
err("Unknown keyword '" $1 "'");
}