shithub: werc

Download patch

ref: 1f64d2d6ff1fc0b68ff1364e8eefc67b6706882f
parent: 5ad6bbe39c971499948adf752e665ed8f1d745d9
author: uriel <uriel@engel.se.cat-v.org>
date: Tue Oct 14 02:59:19 EDT 2008

Make rc happy and comment work in progress code

--- a/bin/cgilib.rc
+++ b/bin/cgilib.rc
@@ -116,7 +116,7 @@
     for(f in $bdir/$date-*) {
         i = `{echo $f | sed -n 's|^.*/'$date'-([0-9]+)_.*|\1|p'}
         if(! ~ $#i 0 && test $i -ge $n)
-		n = `{hoc -e $i'+1'}
+            n = `{hoc -e $i'+1'}
     }
     title = `{echo $"title | sed 's/[ 	]+/_/g; 1q'}
 
@@ -126,27 +126,27 @@
 
 
 # --------
-
-app_blog_methods = ( _post index.rss )
-fn app_blog__post {
-
-}
-
-app_blog___default {
-    if (~ $blog
-    call_app blogpost
-}
-
-# --
-app_blogpost_methods = ( comment  _edit )
-
-fn app_blogpost_comment {
-    call_app comments
-}_
-
-# --
-app_comments_methods = ( _post _edit )
-
-fn app_comments___default {
-
-}
+#
+#app_blog_methods = ( _post index.rss )
+#fn app_blog__post {
+#    echo
+#}
+#
+#app_blog___default {
+#    if (~ $blog)
+#    call_app blogpost
+#}
+#
+## --
+#app_blogpost_methods = ( comment  _edit )
+#
+#fn app_blogpost_comment {
+#    call_app comments
+#}
+#
+## --
+#app_comments_methods = ( _post _edit )
+#
+#fn app_comments___default {
+#
+#}
--- a/bin/controller.rc
+++ b/bin/controller.rc
@@ -251,9 +251,7 @@
 
 # Parse request URL
 uri = `{echo -n $REQUEST_URI | sed -e 's/\?.*//; s/'^$forbidden_uri_chars^'//g; s/\.\.*/./g;' -e '1q'}
-ifs='/' {
-	args = `{echo -n $uri}
-}
+ifs='/' { args = `{echo -n $uri} }
 
 
 if(! ~ $#debug 0)