diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-09-27 22:33:01 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-09-27 22:33:01 +0300 |
commit | 9701514d4ad1152da564ebf6690c514becd4339a (patch) | |
tree | 69cf8c9a9991cb4f9fed6fbc2415f0605c52578e /awklib/eg/prog/extract.awk | |
parent | 6b1b9c16a1b55804df36457de0650414ab3f017d (diff) | |
parent | e71e74ac9af232d58e6c672e37ddf7e8737d68b1 (diff) | |
download | egawk-9701514d4ad1152da564ebf6690c514becd4339a.tar.gz egawk-9701514d4ad1152da564ebf6690c514becd4339a.tar.bz2 egawk-9701514d4ad1152da564ebf6690c514becd4339a.zip |
Merge branch 'master' into comment
Diffstat (limited to 'awklib/eg/prog/extract.awk')
-rw-r--r-- | awklib/eg/prog/extract.awk | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/awklib/eg/prog/extract.awk b/awklib/eg/prog/extract.awk index 12e30b54..24f40ce5 100644 --- a/awklib/eg/prog/extract.awk +++ b/awklib/eg/prog/extract.awk @@ -1,5 +1,4 @@ -# extract.awk --- extract files and run programs -# from texinfo files +# extract.awk --- extract files and run programs from texinfo files # # Arnold Robbins, arnold@skeeve.com, Public Domain # May 1993 @@ -7,8 +6,7 @@ BEGIN { IGNORECASE = 1 } -/^@c(omment)?[ \t]+system/ \ -{ +/^@c(omment)?[ \t]+system/ { if (NF < 3) { e = ("extract: " FILENAME ":" FNR) e = (e ": badly formed `system' line") @@ -24,8 +22,7 @@ BEGIN { IGNORECASE = 1 } print e > "/dev/stderr" } } -/^@c(omment)?[ \t]+file/ \ -{ +/^@c(omment)?[ \t]+file/ { if (NF != 3) { e = ("extract: " FILENAME ":" FNR ": badly formed `file' line") print e > "/dev/stderr" @@ -66,7 +63,7 @@ BEGIN { IGNORECASE = 1 } function unexpected_eof() { printf("extract: %s:%d: unexpected EOF or error\n", - FILENAME, FNR) > "/dev/stderr" + FILENAME, FNR) > "/dev/stderr" exit 1 } |