summaryrefslogtreecommitdiff
path: root/usr.bin/calendar/calendar.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-09-26 20:38:56 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-09-26 20:38:56 +0000
commitb2f9818c35850bf64da266930b62d0b5fca22748 (patch)
tree97c350fc8fb93d3c80ca3bca9decb4c23542427d /usr.bin/calendar/calendar.c
parent0ccfb0dc34bb07d622fc6e61e51834706a5b948f (diff)
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
Diffstat (limited to 'usr.bin/calendar/calendar.c')
-rw-r--r--usr.bin/calendar/calendar.c13
1 files changed, 9 insertions, 4 deletions
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);
}