From 5992644735138034b221398f73f4e97d56500e33 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Tue, 4 Sep 2018 10:49:01 +0100 Subject: added README.md and removed debugging messages --- render.awk | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'render.awk') diff --git a/render.awk b/render.awk index c528188..148a43e 100644 --- a/render.awk +++ b/render.awk @@ -30,7 +30,6 @@ function get_parents(a){ split(a, pars, /[:blank:]*,[:blank:]*/); for (k in pars){ gsub(/ +/, "", pars[k]); - #printf("%d: %s\n", k, pars[k]); } } @@ -39,15 +38,13 @@ function category_in_parents(category, i){ get_parents(category[i,"Parent"]); for (p in pars){ - #printf("pars[%d]: %s\n", p, pars[p]); - if (pars[p]!="none"){### this is the root page + if (pars[p]!="none"){### the root page does not have parents... dst=cfiles[pars[p]]; if (has_categories[pars[p]] == ""){ info_line("", "Err", HOST, PORT, dst); info_line("Sub-categories:", "Err", HOST, PORT, dst) ; } has_categories[pars[p]]=1; - ##print "cfiles[pars[p]]:", cfiles[f]; show_category_link(category, i, dst); } } @@ -81,13 +78,11 @@ function render_init(){ function render_categories(category, cnum, link, lnum){ for (i=1; i<=cnum; i++){ cname=category[i,"Name"]; - #print "'" cname "'"; cfiles[cname]=BASEDIR category[i,"Selector"]; "dirname " cfiles[cname] | getline bdir; if (system("ls -d " bdir " >/dev/null") >0){ system("mkdir " bdir); } - #print cname ":" cfiles[cname]; cmd=sprintf("rm -f %s", cfiles[cname]); system(cmd); category_header(category, i, cfiles[cname]); -- cgit v1.2.3