From b2f9818c35850bf64da266930b62d0b5fca22748 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Wed, 26 Sep 2001 20:38:56 +0000 Subject: special procesing for cyrillic calendars (.ru, .ua, .by for now). does not affect any existing behaviour for everything else. old idea expressed by form@; millert@ ok --- usr.bin/calendar/calendar.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'usr.bin/calendar/calendar.c') diff --git a/usr.bin/calendar/calendar.c b/usr.bin/calendar/calendar.c index 553da968cb7..dc83991eb7d 100644 --- a/usr.bin/calendar/calendar.c +++ b/usr.bin/calendar/calendar.c @@ -1,4 +1,4 @@ -/* $OpenBSD: calendar.c,v 1.15 2001/09/03 15:53:00 pjanzen Exp $ */ +/* $OpenBSD: calendar.c,v 1.16 2001/09/26 20:38:55 mickey Exp $ */ /* * Copyright (c) 1989, 1993, 1994 @@ -43,7 +43,7 @@ static const char copyright[] = #if 0 static const char sccsid[] = "@(#)calendar.c 8.3 (Berkeley) 3/25/94"; #else -static char rcsid[] = "$OpenBSD: calendar.c,v 1.15 2001/09/03 15:53:00 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: calendar.c,v 1.16 2001/09/26 20:38:55 mickey Exp $"; #endif #endif /* not lint */ @@ -73,6 +73,7 @@ char *calendarNoMail = "nomail"; /* don't sent mail if this file exists */ struct passwd *pw; int doall = 0; time_t f_time = 0; +int bodun_always = 0; int f_dayAfter = 0; /* days after current date */ int f_dayBefore = 0; /* days before current date */ @@ -91,7 +92,7 @@ main(argc, argv) (void)setlocale(LC_ALL, ""); - while ((ch = getopt(argc, argv, "-af:t:A:B:")) != -1) + while ((ch = getopt(argc, argv, "-abf:t:A:B:")) != -1) switch (ch) { case '-': /* backward contemptible */ case 'a': @@ -100,6 +101,10 @@ main(argc, argv) doall = 1; break; + case 'b': + bodun_always++; + break; + case 'f': /* other calendar file */ calendarFile = optarg; break; @@ -258,7 +263,7 @@ void usage() { (void)fprintf(stderr, - "usage: calendar [-a] [-A num] [-B num] [-t [[[cc]yy][mm]]dd] " + "usage: calendar [-a] [-A num] [-b] [-B num] [-t [[[cc]yy][mm]]dd] " "[-f calendarfile]\n"); exit(1); } -- cgit v1.2.3