Current Path : /usr/src/gnu/lib/libregex/doc/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/src/gnu/lib/libregex/doc/include.awk |
# Assume `source' is set with -vsource=filename on the command line. # /^\[\[\[/ { inclusion = $2; # name of the thing to include. printing = 0; while ((getline line < source) > 0) { if (match (line, "\\[\\[\\[end " inclusion "\\]\\]\\]")) printing = 0; if (printing) print line; if (match (line,"\\[\\[\\[begin " inclusion "\\]\\]\\]")) printing = 1; } close (source); next; } { print }