diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-04-30 01:30:42 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-04-30 01:30:42 +0000 |
commit | e8bb7a5cf517821dedd016a4acdef892f2d34b61 (patch) | |
tree | 9d3def668878991ec65c5bee5377c28dc8cfbdc6 | |
parent | 88066c9a0811bfa66b9e85d8790cbfab53d8d481 (diff) |
add a SCRIPT command which does sed-based comment stripping, and also the ARCH=ARCH replacement
-rw-r--r-- | distrib/miniroot/list2sh.awk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/distrib/miniroot/list2sh.awk b/distrib/miniroot/list2sh.awk index 510215b6efb..57dcb50c916 100644 --- a/distrib/miniroot/list2sh.awk +++ b/distrib/miniroot/list2sh.awk @@ -1,4 +1,4 @@ -# $OpenBSD: list2sh.awk,v 1.7 2002/04/29 17:13:38 deraadt Exp $ +# $OpenBSD: list2sh.awk,v 1.8 2002/04/30 01:30:41 deraadt Exp $ # $NetBSD: list2sh.awk,v 1.2 1996/05/04 15:45:31 pk Exp $ BEGIN { @@ -69,6 +69,12 @@ $1 == "TERMCAP" { $2, $3); next; } +$1 == "SCRIPT" { + printf("echo '%s'\n", $0); + printf("sed -e '/^[ ]*#[ ].*$/d' -e '/^[ ]*#$/d' -e \"s/^ARCH=ARCH$/ARCH=`arch -ks`/\" < %s > ${TARGDIR}/%s\n", + $2, $3); + next; +} { printf("echo '%s'\n", $0); printf("echo 'Unknown keyword \"%s\" at line %d of input.'\n", $1, NR); |