From 2c5235cca70bf1c5b5e92dd5b6b178ab13b695f2 Mon Sep 17 00:00:00 2001 From: Baptiste Jonglez Date: Tue, 29 May 2012 09:55:01 +0200 Subject: Make appearance.calendarview more explicit in config file Instead of using 0 or 1 as a value for `appearance.calendarview`, introduce the more explicit "monthly" and "weekly". Also update `scripts/calcurse-upgrade.sh` to reflect the change. Signed-off-by: Baptiste Jonglez Signed-off-by: Lukas Fleischer --- scripts/calcurse-upgrade.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts') diff --git a/scripts/calcurse-upgrade.sh b/scripts/calcurse-upgrade.sh index ffe110a..20f4875 100644 --- a/scripts/calcurse-upgrade.sh +++ b/scripts/calcurse-upgrade.sh @@ -86,6 +86,8 @@ if grep -q -e '^auto_save=' -e '^auto_gc=' -e '^periodic_save=' \ $1 == "general.systemdialogs" || $1 == "general.progressbar" \ { $2 = ($2 == "yes") ? "no" : "yes" } $1 == "general.firstdayofweek" { $2 = ($2 == "yes") ? "monday" : "sunday" } + $1 == "appearance.calendarview" { $2 = ($2 == 0) ? "monthly" : + ($2 == 1) ? "weekly" : $2 } { print } ' < "$CONFFILE" > "$tmpfile" mv "$tmpfile" "$CONFFILE" -- cgit v1.2.3-70-g09d2