Index: doc/user/09_appendix/src/Makefile =================================================================== --- doc/user/09_appendix/src/Makefile (revision 37037) +++ doc/user/09_appendix/src/Makefile (revision 37038) @@ -9,7 +9,7 @@ all: $(CLEANFILES) ../action_details.html: ./action_compiler.sh ../action_src/*.html librnd_acts - ./action_compiler.sh ../action_src/*.html LIBRND librnd_acts/*.html > ../action_details.html + LIBRND_LIBDIR=$(LIBRND_LIBDIR) ./action_compiler.sh ../action_src/*.html LIBRND librnd_acts/*.html > ../action_details.html ../action_reference.html : ./dump_actions_to_html.sh $(PCBRND) ../action_details.html librnd_acts ./dump_actions_to_html.sh > ../action_reference.html Index: doc/user/09_appendix/src/action_compiler.sh =================================================================== --- doc/user/09_appendix/src/action_compiler.sh (revision 37037) +++ doc/user/09_appendix/src/action_compiler.sh (revision 37038) @@ -1,180 +1,10 @@ #!/bin/sh -SEP="<@@@@>" -SEPH="<@@H@@>" +APP=pcb-rnd -compile() -{ - awk -v "SEP=$SEP" -v "SEPH=$SEPH" ' - BEGIN { - q="\"" - SEP="^" SEP - SEPH="^" SEPH - } - - function strip(s) { - sub("^[ \t]*", "", s) - sub("[ \t]*$", "", s) - return s - } - - function read_tag(tag, tmp1,tmp2) { - getline tmp1 - getline tmp2 - if (tmp2 ~ "" tag) - return tmp1 - print "Error: expected closing tag " tag " in line " NR " of " current > "/dev/stderr" - exit(1) - } - - function notav(s) { - if (s == "") return "n/a" - return s - } - - function end_act() - { - if (current != "") - print "" - currrent = "" - } - - ($0 ~ SEP) { - end_act() - action = "" - $1="" - current=tolower(strip($0)) - sub("^.*/", "", current) - sub(".html$", "", current) - - if (current in ANAME) - aname = ANAME[current] - else - aname = current - - print "" - print "
" - print "
Syntax summary: | " notav(SYNTAX[current]) - print " |
---|---|
Help text: | " notav(HELP[current]) - print " |
Registered by: | " notav(COOKIE[current]) - print " |
" - next - } - - - ($0 ~ SEPH) { - end_act() - action = "" - $1="" - print "