Ignore:
Timestamp:
11/10/08 22:47:48 (4 years ago)
Author:
KennethLavrsen
Message:

Item109: Finally reached the end of the renaming of
TWikiPreferences to Default/SitePreferences in trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/KoalaSkin/bin/koalaskin-generate

    r464 r527  
    571571 
    572572# looks into the TWiki site prefs to see if user has set the needed vars 
     573# SMELL: Does not cope with DefaultPreferences and SitePreferences 
    573574check_ks_variables () { 
    574575  local tp v 
    575576  if $onsite; then 
    576     for tp in $data/*/TWikiPreferences.txt; do 
     577    for tp in $data/*/DefaultPreferences.txt; do 
    577578      for v in `egrep '^        +[*] +Set +[A-Z_]+ +=' $tp | sed -e 's/^[        *]*Set  *\([A-Z_][A-Z_]*\) .*/\1/'`; do 
    578579        needed_vars="${needed_vars/ $v / +$v }" 
     
    582583      case "$v" in 
    583584        +*) : ;; # ok, found 
    584         *) W You must define the TWiki variable \"$v\" in TWiki.TWikiPreferences, e.g.: 
     585        *) W You must define the TWiki variable \"$v\" in TWiki.DefaultPreferences, e.g.: 
    585586           echo "      * Set $v =" 
    586587           ;; 
     
    12221223check_settings () { 
    12231224  if $onsite; then 
    1224     if grep -q '^               [*] Set TOPICS =' $data/TWiki/TWikiPreferences.txt 
     1225    if grep -q '^               [*] Set TOPICS =' $data/TWiki/DefaultPreferences.txt 
    12251226    then :; else W "You must set the TOPICS variable in Wiki prefs like this: 
    12261227      * Set TOPICS =" 
    12271228    fi 
    1228     if grep -q '^               [*] Set SKIN = koala' $data/TWiki/TWikiPreferences.txt 
     1229    if grep -q '^               [*] Set SKIN = koala' $data/TWiki/DefaultPreferences.txt 
    12291230    then :; else W "You must set the SKIN variable in Wiki prefs like this: 
    12301231      * Set SKIN = koala" 
    12311232    fi 
    1232     if grep -q '^               [*] Set EDITBOXSTYLE =' $data/TWiki/TWikiPreferences.txt 
     1233    if grep -q '^               [*] Set EDITBOXSTYLE =' $data/TWiki/DefaultPreferences.txt 
    12331234    then :; else W "You must set the EDITBOXSTYLE variable in Wiki prefs like this: 
    12341235      * Set EDITBOXSTYLE = width: 99%" 
Note: See TracChangeset for help on using the changeset viewer.