diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-09-04 09:49:44 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-09-04 09:49:44 +0300 |
commit | 7448f28d356fc5cd8d9117111baea3a549e0930e (patch) | |
tree | f24d82d8b121d8321cfc0366dabad236d3f3dac3 /helpers | |
parent | a205df7903bce201577df4f7049c190e283f1ea4 (diff) | |
parent | 8beb9796b17b6ca48eb62df8fd3d31421e43c761 (diff) | |
download | egawk-7448f28d356fc5cd8d9117111baea3a549e0930e.tar.gz egawk-7448f28d356fc5cd8d9117111baea3a549e0930e.tar.bz2 egawk-7448f28d356fc5cd8d9117111baea3a549e0930e.zip |
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'helpers')
-rw-r--r-- | helpers/ChangeLog | 4 | ||||
-rw-r--r-- | helpers/chlistref.awk | 31 |
2 files changed, 35 insertions, 0 deletions
diff --git a/helpers/ChangeLog b/helpers/ChangeLog index c9121403..a5bbafb1 100644 --- a/helpers/ChangeLog +++ b/helpers/ChangeLog @@ -1,3 +1,7 @@ +2014-09-04 Arnold D. Robbins <arnold@skeeve.com> + + * chlistref.awk: New file. Finds @ref{} to non-chapters. + 2014-06-08 Arnold D. Robbins <arnold@skeeve.com> * testdfa.c: Minor improvements. diff --git a/helpers/chlistref.awk b/helpers/chlistref.awk new file mode 100644 index 00000000..49f63f59 --- /dev/null +++ b/helpers/chlistref.awk @@ -0,0 +1,31 @@ +BEGIN { + chapters["Getting Started"]++ + chapters["Invoking Gawk"]++ + chapters["Regexp"]++ + chapters["Reading Files"]++ + chapters["Printing"]++ + chapters["Expressions"]++ + chapters["Patterns and Actions"]++ + chapters["Arrays"]++ + chapters["Functions"]++ + chapters["Library Functions"]++ + chapters["Sample Programs"]++ + chapters["Advanced Features"]++ + chapters["Internationalization"]++ + chapters["Debugger"]++ + chapters["Arbitrary Precision Arithmetic"]++ + chapters["Dynamic Extensions"]++ + chapters["Language History"]++ + chapters["Installation"]++ + chapters["Notes"]++ + chapters["Basic Concepts"]++ + + Pattern = ".*@ref\\{([^}]+)\\},.*" +} + +$0 ~ Pattern { + ref = gensub(Pattern, "\\1", 1, $0) + if (! (ref in chapters)) + printf("%s:%d: %s\n", FILENAME, FNR, $0) +} + |