Comment out broken/unused code, plus some minnor debug improvements and a cat-v.org specific hack
This commit is contained in:
parent
a9262efd94
commit
1f66984929
4 changed files with 15 additions and 8 deletions
|
|
@ -230,7 +230,7 @@ fn genbody {
|
||||||
|
|
||||||
|
|
||||||
if(! ~ $#debug 0)
|
if(! ~ $#debug 0)
|
||||||
dprint $SERVER_NAME^$REQUEST_URI^' - '^$"HTTP_USER_AGENT
|
dprint ' ' $SERVER_NAME^$REQUEST_URI^' - '^$"HTTP_USER_AGENT
|
||||||
|
|
||||||
|
|
||||||
if (! ~ $args '') {
|
if (! ~ $args '') {
|
||||||
|
|
@ -284,6 +284,10 @@ if (! ~ $#sidebar 0)
|
||||||
|
|
||||||
body=$sitedir/$body
|
body=$sitedir/$body
|
||||||
rssuri=$uri
|
rssuri=$uri
|
||||||
|
|
||||||
|
#if(~ $body */index)
|
||||||
|
#perm_redirect `{ echo $REQUEST_URI | sed 's,/index$,/,' }
|
||||||
|
|
||||||
if (test -d $body) {
|
if (test -d $body) {
|
||||||
if(! ~ $body */)
|
if(! ~ $body */)
|
||||||
perm_redirect $REQUEST_URI^'/'
|
perm_redirect $REQUEST_URI^'/'
|
||||||
|
|
@ -334,7 +338,7 @@ fn statpost {
|
||||||
title=`{basename $f | sed 's/^[0-9\-]*_(.*)\.md$/\1/; s/_/ /g' }
|
title=`{basename $f | sed 's/^[0-9\-]*_(.*)\.md$/\1/; s/_/ /g' }
|
||||||
date=`{/bin/date -Rd `{basename $f |sed 's/(^[0-9\-]*).*/\1/; s/-[0-9]$//'}}
|
date=`{/bin/date -Rd `{basename $f |sed 's/(^[0-9\-]*).*/\1/; s/-[0-9]$//'}}
|
||||||
stat=`{stat -c '%Y %U' $f}
|
stat=`{stat -c '%Y %U' $f}
|
||||||
mdate=`{/bin/date -Rd @$stat(1)}
|
#mdate=`{/bin/date -Rd $stat(1)} # Not used because it is unreliable
|
||||||
uri=$baseuri^`{cleanname `{echo -n $uri | sed 's/\.(md|tpl)//g'}}
|
uri=$baseuri^`{cleanname `{echo -n $uri | sed 's/\.(md|tpl)//g'}}
|
||||||
by=$stat(2)
|
by=$stat(2)
|
||||||
ifs=() {
|
ifs=() {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[web]
|
[web]
|
||||||
style = gitweb
|
style = gitweb
|
||||||
allow_archive = bz2 zip
|
allow_archive = bz2
|
||||||
|
|
||||||
#[paths]
|
#[paths]
|
||||||
#w9 = /gsoc/hg/w9/
|
#w9 = /gsoc/hg/w9/
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ Content-Type: text/html
|
||||||
|
|
||||||
%($extraHeaders%)
|
%($extraHeaders%)
|
||||||
|
|
||||||
|
<meta name="verify-v1" content="6zEoK0WMlnLmIS/w7Pnh6+srZECHsvnMGN0kQmowSGk=" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,11 +13,13 @@ Content-Type: text/xml; charset=utf-8
|
||||||
%{
|
%{
|
||||||
for(f in `{sortedBlogPostList $blogDirs}) {
|
for(f in `{sortedBlogPostList $blogDirs}) {
|
||||||
statpost $f
|
statpost $f
|
||||||
# Hack to aproximate the last build date (use the mdate from last posted item)
|
# Hack to aproximate the last build date
|
||||||
if(~ $#last_build_date 0) {
|
#(use the mdate from last posted item)
|
||||||
last_build_date='<lastBuildDate>'^$"mdate'</lastBuildDate>'
|
# Commented out for now because maybe a wrong value is worse than no value
|
||||||
echo $last_build_date
|
#if(~ $#last_build_date 0) {
|
||||||
}
|
#last_build_date='<lastBuildDate>'^$"mdate'</lastBuildDate>'
|
||||||
|
#echo $last_build_date
|
||||||
|
#}
|
||||||
%}
|
%}
|
||||||
<item>
|
<item>
|
||||||
<title>%($title%)</title>
|
<title>%($title%)</title>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue