aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-09-18 16:09:36 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2011-09-18 16:09:36 +0300
commit999cefa29eeffcb380ac40a010321d65bf72f8d5 (patch)
tree39b34022bd612c7e0d6177f7968e218e90b65e2b
parent3e80764bc201e0ccaf26a7e703cf54836bacb697 (diff)
downloadimprimatur-999cefa29eeffcb380ac40a010321d65bf72f8d5.tar.gz
imprimatur-999cefa29eeffcb380ac40a010321d65bf72f8d5.tar.bz2
emptynodes.awk: Skip over @macro..@end macro blocks.
-rw-r--r--emptynodes.awk3
1 files changed, 3 insertions, 0 deletions
diff --git a/emptynodes.awk b/emptynodes.awk
index 94b9ea4..8e73383 100644
--- a/emptynodes.awk
+++ b/emptynodes.awk
@@ -43,6 +43,8 @@ function report() {
else
print FILENAME ":" FNR ": (unknown)" > "/dev/stderr"
}
+skip_to && $1 == "@end" && $2 == skip_to { skip_to = ""; next }
+skip_to { next }
/@c imprimatur-ignore/ { ignore = FILENAME }
ignore == FILENAME { next }
$1 == "@WRITEME" {
@@ -53,6 +55,7 @@ $1 == "@WRITEME" {
next
}
$1 == "@bye" { state = 0; node_locus = "" }
+$1 == "@macro" { skip_to = "macro"; next }
$1 == "@include" && scriptname {
ofile = $2
cmd = "find " includepath " -maxdepth 1 -name " ofile " -print -quit"

Return to:

Send suggestions and report system problems to the System administrator.