Index: user/09_appendix/src/Makefile =================================================================== --- user/09_appendix/src/Makefile (revision 603) +++ user/09_appendix/src/Makefile (revision 604) @@ -1,6 +1,9 @@ CAMVRND = ../../../../src/camv-rnd CLEANFILES=../action_details.html ../action_reference.html ../formats.html ../dialogs.html +include ../../../../Makefile.conf +include $(LIBRND_MAK) + all: $(CLEANFILES) ../action_details.html: ./action_compiler.sh ../action_src/*.html librnd_acts @@ -17,7 +20,7 @@ ./gen_formats.sh > ../formats.html ../dialogs.html: $(CAMVRND) ./gen_dialogs.sh ./dialog_extra.awk - ./gen_dialogs.sh > ../dialogs.html + LIBRND_LIBDIR="$(LIBRND_LIBDIR)" ./gen_dialogs.sh > ../dialogs.html FORCE: Index: user/09_appendix/src/gen_dialogs.sh =================================================================== --- user/09_appendix/src/gen_dialogs.sh (revision 603) +++ user/09_appendix/src/gen_dialogs.sh (revision 604) @@ -2,6 +2,13 @@ trunk=../../../.. +if test -z "$LIBRND_LIBDIR" +then +# when not run from the Makefile + LIBRND_LIBDIR=`cd $trunk/doc/developer/packaging && make -f librnd_root.mk libdir` +fi + + # exceptions dlgtbl=' BEGIN { @@ -33,59 +40,9 @@ source comments ' +dlgextra="`cat dialog_extra.awk`" -$trunk/util/devhelpers/list_dialogs.sh | awk -F "[\t]" ' -function orna(s) -{ - if ((s == "") || (s == "")) return "n/a" - return s -} +. $LIBRND_LIBDIR/devhelpers/list_dialogs.sh -'"$dlgtbl"' -'"`cat dialog_extra.awk`"' +list_dlgs $trunk/src/*.c $trunk/src_plugins/*/*.c | gen_html -function out(id, name, src, action, comment ,acturl1,acturl2,fn,tmp) { - if (action == "") { - if (id in ACTION) action = ACTION[id] - else if (src in ACTION) action = ACTION[src] - } - - if (action != "") { - acturl1 = action - sub("[(].*", "", acturl1) - fn = "../action_src/" acturl1 ".html" - if ((getline tmp < fn) == 1) { - acturl1 = "" - acturl2 = "" - } - else { - acturl1 = "" - acturl2 = "" - } - close(fn) - } - - if (comment == "") { - if (id in COMMENT) comment = COMMENT[id] - else if (src in COMMENT) comment = COMMENT[src] - else comment = " " - } - - print "" orna(id) "" orna(name) "" acturl1 orna(action) acturl2 "" src "" comment -} - -{ - id=$1 - name=$2 - src=$3 - if ((src in IGNORE) && ((name ~ IGNORE[src]) || (id ~ IGNORE[src]))) - next - out(id, name, src) -} -' - -echo ' - - - -'