Index: Makefile =================================================================== --- Makefile (revision 34674) +++ Makefile (revision 34675) @@ -20,6 +20,7 @@ $(SCCBOX) $(HOW) keylist.sh "$(LIBDIR)/keylist.sh" $(SCCBOX) $(HOW) menu2svg.sh "$(LIBDIR)/menu2svg.sh" $(SCCBOX) $(HOW) action_compiler.sh "$(LIBDIR)/action_compiler.sh" + $(SCCBOX) $(HOW) dump_actions_to_html.sh "$(LIBDIR)/dump_actions_to_html.sh" install: $(MAKE) install_all HOW="install -f" Index: dump_actions_to_html.sh =================================================================== --- dump_actions_to_html.sh (revision 34674) +++ dump_actions_to_html.sh (revision 34675) @@ -1,34 +1,39 @@ #!/bin/sh +# action list dump - collates the pcb-rnd action table into a html doc page +# Copyright (C) 2017,2018 Tibor 'Igor2' Palinkas +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# +# http://repo.hu/projects/librnd -# collates the pcb-rnd action table into a html doc page +#shell lib; configuration: +# $asrc path to action sources +# $lsrc path to librnd action sources -asrc="../action_src" -lsrc="librnd_acts" - -cd ../../../../src -pcb_rnd_ver=`./pcb-rnd --version` -pcb_rnd_rev=`svn info ^/ | awk '/Revision:/ { - print $0 - got_rev=1 - exit - } - END { - if (!got_rev) - print "Rev unknown" - } - '` -cd ../doc/user/09_appendix/src - -echo " +# $1 is app name +print_hdr() { +echo " - pcb-rnd user manual + $1 user manual

-

pcb-rnd User Manual: Appendix

+

$1 User Manual: Appendix

Action Reference

" @@ -36,11 +41,11 @@ echo $pcb_rnd_ver ", " $pcb_rnd_rev echo "" echo "
Action Description Syntax Plugin" -( - cd ../../../../src - ./pcb-rnd --dump-actions 2>/dev/null -) | awk ' +} +gen() { + awk ' + function flush_sd() { if ( a != "" || s != "" || d != "" ) { @@ -119,3 +124,4 @@ print "" } ' +}