changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > werc / changeset: Add conf_enable_blog function to blagh to be used to setup a blog.

changeset 348: bc931d0422f4
parent 347: 0e9e1fb05d01
child 349: 56c0493bdf6e
author: uriel@engel.se.cat-v.org
date: Thu, 22 Jan 2009 09:23:20 +0100
files: apps/blagh/app.rc
description: Add conf_enable_blog function to blagh to be used to setup a blog.
     1.1--- a/apps/blagh/app.rc	Thu Jan 22 09:22:15 2009 +0100
     1.2+++ b/apps/blagh/app.rc	Thu Jan 22 09:23:20 2009 +0100
     1.3@@ -1,3 +1,11 @@
     1.4+# XXX Should use a function to enable blagh instead of depending on blaghDirs, that way we can save the path of the root of the blog.
     1.5+fn conf_enable_blog {
     1.6+    blagh_root=$conf_wd
     1.7+    blagh_dirs=$*
     1.8+    if(~ $#blagh_dirs 0)
     1.9+        blagh_dirs=$conf_wd
    1.10+}
    1.11+
    1.12 fn blagh_init {
    1.13     if(~ $#blaghDirs 0 && ~ $local_path */[bB]log/index*)
    1.14         blaghDirs=( . )