diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-05-17 21:59:49 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-05-17 22:08:00 +0200 |
commit | 6c11b8985cbd8fbb5525a4c4d2338603b81729c5 (patch) | |
tree | 197335b82e9039ba98b2438e48c3d477aa198bc5 /scripts | |
parent | dec97c7c81add925511153a06639922974147018 (diff) | |
download | calcurse-6c11b8985cbd8fbb5525a4c4d2338603b81729c5.zip |
Fix data type of "general.firstdayofweek"
This option wasn't converted to a proper data type when it was renamed
from "week_begins_on_monday" to "general.firstdayofweek". Convert the
boolean option into an enumeration type that can take the values
"monday" and "sunday". Also, update the documentation, add a conversion
rule to the upgrade script and convert the configuration file used in
the test suite.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/calcurse-upgrade | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/calcurse-upgrade b/scripts/calcurse-upgrade index 0d9b196..2fa7d4f 100644 --- a/scripts/calcurse-upgrade +++ b/scripts/calcurse-upgrade @@ -68,6 +68,7 @@ if grep -q -e '^auto_save=' -e '^auto_gc=' -e '^periodic_save=' \ BEGIN { FS=OFS="=" } $1 == "general.systemdialogs" || $1 == "general.progressbar" \ { $2 = ($2 == "yes") ? "no" : "yes" } + $1 == "general.firstdayofweek" { $2 = ($2 == "yes") ? "monday" : "sunday" } { print } ' < "$CONFFILE" > "$tmpfile" || exit 1 mv "$tmpfile" "$CONFFILE" || exit 1 |