wercconf.rc (467B)
1 # To be used from config files 2 fn conf_perm_redirect { 3 if(~ $#* 1) 4 perm_redir_to=$1 5 if not 6 ll_addh perm_redir_patterns $1 $2 7 } 8 9 fn conf_hide_paths { 10 for(i in $*) 11 dirfilter=$dirfilter^'/'^`{echo $sitedir$conf_wd$i|sed 's!/+!\\/!g'}^'/d; ' 12 } 13 14 # Usually will be called from within conf_enable_foo 15 fn conf_enable_app { 16 # Note: maybe we should add test -d apps/$1/? 17 if(! ~ $1 $enabled_apps) 18 enabled_apps=( $enabled_apps $1 ) 19 }