summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorBaptiste Jonglez <baptiste--git@jonglez.org>2012-05-29 09:55:01 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2012-05-31 20:45:42 +0200
commit2c5235cca70bf1c5b5e92dd5b6b178ab13b695f2 (patch)
tree9185e8079a8ecd0c80c2970e1261e821d1af9952 /scripts
parentf7a88a5515e9f088a60623e162b89065ddcce757 (diff)
downloadcalcurse-2c5235cca70bf1c5b5e92dd5b6b178ab13b695f2.tar.gz
calcurse-2c5235cca70bf1c5b5e92dd5b6b178ab13b695f2.zip
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 <baptiste--git@jonglez.org> Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/calcurse-upgrade.sh2
1 files changed, 2 insertions, 0 deletions
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"