~allison/ubuntu/natty/bsdmainutils/bsdmainutils.allison-natty-merge

« back to all changes in this revision

Viewing changes to debian/patches/ncal_mfdow.diff

  • Committer: Colin Watson
  • Date: 2010-10-13 11:00:52 UTC
  • mfrom: (2.2.11 sid)
  • Revision ID: cjwatson@canonical.com-20101013110052-7l53xzaim0oyqag9
merge from Debian 8.0.13

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Add option to set first day of week.
 
2
Author: Michael Meskes <meskes@debian.org>
 
3
 
1
4
--- bsdmainutils/usr.bin/ncal/ncal.c    2010-01-21 13:35:39.000000000 +0100
2
5
+++ bsdmainutils/usr.bin/ncal/ncal.c    2010-01-21 13:37:40.000000000 +0100
3
6
@@ -284,7 +284,7 @@
16
19
+               case 'S':
17
20
+                       if (flag_backward)
18
21
+                               usage();
19
 
+                       weekstart = -1;
 
22
+                       weekstart = 0;
20
23
+                       break;
21
24
+               case 'M':
22
25
+                       if (flag_backward)
23
26
+                               usage();
24
 
+                       weekstart = 0;
 
27
+                       weekstart = 1;
25
28
+                       break;
26
29
                default:
27
30
                        usage();