summaryrefslogtreecommitdiff
path: root/render.awk
diff options
context:
space:
mode:
Diffstat (limited to 'render.awk')
-rw-r--r--render.awk7
1 files changed, 1 insertions, 6 deletions
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]);