swerc

anselm's simpler werc fork
git clone git://git.suckless.org/swerc
Log | Files | Refs | README

commit 48895e157919ccd54003b93f97143f35d2f60cb3
parent 0e9a96072ee6563ed7c42adb7721445d81682a53
Author: uriel@vm41.cat-v.org <unknown>
Date:   Fri, 12 Jun 2009 23:59:47 +0200

Allo to set blagh conf_ options from initrc.local as well.
Diffstat:
Mapps/blagh/app.rc | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/apps/blagh/app.rc b/apps/blagh/app.rc @@ -4,9 +4,13 @@ fn conf_enable_blog { if(~ $#blagh_dirs 0) blagh_dirs=( . ) conf_enable_app blagh + + if(~ $"conf_blog_editors '') + conf_blog_editors=blog-editors + + if(~ $"conf_max_posts_per_page '') + conf_max_posts_per_page=32 } -conf_blog_editors=blog-editors -conf_max_posts_per_page=32 fn blagh_init { if(~ $#blagh_dirs 0 && ~ $req_path */[bB]log/*) {