diff options
author | KatolaZ <katolaz@freaknet.org> | 2018-09-04 10:49:01 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2018-09-04 10:49:01 +0100 |
commit | 5992644735138034b221398f73f4e97d56500e33 (patch) | |
tree | 417f92d6b037f5ea3c3cf1d046f412a27e00c5f0 /render.awk | |
parent | b4c015b23c34870243b75ca75fa824cf3452b471 (diff) |
added README.md and removed debugging messages
Diffstat (limited to 'render.awk')
-rw-r--r-- | render.awk | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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]); |