summaryrefslogtreecommitdiff
path: root/distrib/alpha/list2sh.awk
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2001-08-29 15:01:18 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2001-08-29 15:01:18 +0000
commit11e92875ae7dd291e36dc09dd19d824930cae2fc (patch)
treeceb9a3efee186fb0c694434b112c80ea20f8147e /distrib/alpha/list2sh.awk
parent6f3175afa858bcf9a71aab3d93a369ea346e4bba (diff)
Apply recent changes in the i386 comment eradication code to all
architectures using a list2sh.awk and related 'list' files (alpha, hp300, mac68k, mvme68k, mvme88k, mvmeppc, powerpc and vax). list2sh.awk is modified so that in handling SPECIAL lines the tabs in regular expressions are not lost to awk field parsing. Any 'list' file trying to eliminate comments, using SPECIAL lines and sed, now eliminates lines that a) have '#' as the first non-blank, non-tab character, with at least one blank or tab following the '#'. b) have '#' as the first non-blank, non-tab character, with a newline immediately following the '#'. Previous b) was not being done, and only leading/following blanks were being looked for due to the loss of tab characters in list2sh.awk.
Diffstat (limited to 'distrib/alpha/list2sh.awk')
-rw-r--r--distrib/alpha/list2sh.awk8
1 files changed, 3 insertions, 5 deletions
diff --git a/distrib/alpha/list2sh.awk b/distrib/alpha/list2sh.awk
index 9b9f9b596b0..078e597c20a 100644
--- a/distrib/alpha/list2sh.awk
+++ b/distrib/alpha/list2sh.awk
@@ -1,4 +1,4 @@
-# $OpenBSD: list2sh.awk,v 1.3 1997/05/16 02:27:10 millert Exp $
+# $OpenBSD: list2sh.awk,v 1.4 2001/08/29 15:01:17 krw Exp $
BEGIN {
printf("cd ${CURDIR}\n");
@@ -52,10 +52,8 @@ $1 == "COPYDIR" {
}
$1 == "SPECIAL" {
printf("echo '%s'\n", $0);
- printf("(cd ${TARGDIR};");
- for (i = 2; i <= NF; i++)
- printf(" %s", $i);
- printf(")\n");
+ sub(/^[ \t]*SPECIAL[ \t]*/, "");
+ printf("(cd ${TARGDIR}; %s)\n", $0);
next;
}
{