swerc

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

commit 345bb70dc60f649b92faeb0e7a97bb4f268d7a1c
parent 43b418c8d2c45c7d60f425b681758a9e50d5d019
Author: uriel@engel.se.cat-v.org <unknown>
Date:   Tue, 14 Oct 2008 01:09:12 +0200

Remove deprecated code to handle old config and teomplate locations
Diffstat:
Mbin/controller.rc | 27---------------------------
1 file changed, 0 insertions(+), 27 deletions(-)

diff --git a/bin/controller.rc b/bin/controller.rc @@ -13,29 +13,8 @@ fn get_lib_file { echo -n sites/$masterSite/_werc/lib/$wantedfile if not if (test -f lib/$wantedfile) echo -n lib/$wantedfile - - # DEPRECATED - if not if (~ $#disableDeprecated 0 && test -f $sitedir/_inc/$wantedfile) { - echo -n $sitedir/_inc/$wantedfile - dprint DEPRECATION WARNING: Using file in depracted path: $sitedir/_inc/$wantedfile XXX - } - if not if(~ $#disableDeprecated 0 && ! ~ $masterSite 0 && test -f sites/$masterSite/_inc/$wantedfile) { - echo -n sites/$masterSite/_inc/$wantedfile - dprint DEPRECATION WARNING: Using file in depracted path: sites/$masterSite/_inc/$wantedfile XXX - } - if not if (~ $#disableDeprecated 0 && test -f inc/$wantedfile) { - echo -n inc/$wantedfile - dprint DEPRECATION WARNING: Using file in depracted path: inc/$wantedfile XXX - } -} - -# DEPRECATED -fn get_inc_file { - get_lib_file $* - dprint DEPRECATION WARNING: Called get_inc_file, should call get_lib_file } - # Title fn gentitle { echo '<h1 class="headerTitle"><a href="/">' ^ $"siteTitle ^ ' <span id="headerSubTitle">' ^ $"siteSubTitle ^ '</span></a></h1>' @@ -355,12 +334,6 @@ select_handler # Template/body selection master_template= `{get_lib_file $master_template} -if(~ $master_template 0) { - dprint DEPRECATION WARNING: using $sitedir/_default.tpl, should move to _werc/lib/XXX - master_template=$sitedir/_default.tpl -} - - if(~ $response_format html) { # Is awk_buffer really useful? template $headers $master_template | awk_buffer