Changeset 527 for trunk/KoalaSkin/bin/koalaskin-generate
- Timestamp:
- 11/10/08 22:47:48 (4 years ago)
- File:
-
- 1 edited
-
trunk/KoalaSkin/bin/koalaskin-generate (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/KoalaSkin/bin/koalaskin-generate
r464 r527 571 571 572 572 # looks into the TWiki site prefs to see if user has set the needed vars 573 # SMELL: Does not cope with DefaultPreferences and SitePreferences 573 574 check_ks_variables () { 574 575 local tp v 575 576 if $onsite; then 576 for tp in $data/*/ TWikiPreferences.txt; do577 for tp in $data/*/DefaultPreferences.txt; do 577 578 for v in `egrep '^ +[*] +Set +[A-Z_]+ +=' $tp | sed -e 's/^[ *]*Set *\([A-Z_][A-Z_]*\) .*/\1/'`; do 578 579 needed_vars="${needed_vars/ $v / +$v }" … … 582 583 case "$v" in 583 584 +*) : ;; # 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.: 585 586 echo " * Set $v =" 586 587 ;; … … 1222 1223 check_settings () { 1223 1224 if $onsite; then 1224 if grep -q '^ [*] Set TOPICS =' $data/TWiki/ TWikiPreferences.txt1225 if grep -q '^ [*] Set TOPICS =' $data/TWiki/DefaultPreferences.txt 1225 1226 then :; else W "You must set the TOPICS variable in Wiki prefs like this: 1226 1227 * Set TOPICS =" 1227 1228 fi 1228 if grep -q '^ [*] Set SKIN = koala' $data/TWiki/ TWikiPreferences.txt1229 if grep -q '^ [*] Set SKIN = koala' $data/TWiki/DefaultPreferences.txt 1229 1230 then :; else W "You must set the SKIN variable in Wiki prefs like this: 1230 1231 * Set SKIN = koala" 1231 1232 fi 1232 if grep -q '^ [*] Set EDITBOXSTYLE =' $data/TWiki/ TWikiPreferences.txt1233 if grep -q '^ [*] Set EDITBOXSTYLE =' $data/TWiki/DefaultPreferences.txt 1233 1234 then :; else W "You must set the EDITBOXSTYLE variable in Wiki prefs like this: 1234 1235 * Set EDITBOXSTYLE = width: 99%"
Note: See TracChangeset
for help on using the changeset viewer.
