BSD 4_4 release
[unix-history] / usr / src / usr.bin / calendar / calendar.1
index 5969731..1ffa5e5 100644 (file)
@@ -1,48 +1,62 @@
-.\" Copyright (c) 1989, 1990 The Regents of the University of California.
-.\" All rights reserved.
+.\" Copyright (c) 1989, 1990, 1993
+.\"    The Regents of the University of California.  All rights reserved.
 .\"
 .\"
-.\" Redistribution and use in source and binary forms are permitted provided
-.\" that: (1) source distributions retain this entire copyright notice and
-.\" comment, and (2) distributions including binaries display the following
-.\" acknowledgement:  ``This product includes software developed by the
-.\" University of California, Berkeley and its contributors'' in the
-.\" documentation or other materials provided with the distribution and in
-.\" all advertising materials mentioning features or use of this software.
-.\" Neither the name of the University nor the names of its contributors may
-.\" be used to endorse or promote products derived from this software without
-.\" specific prior written permission.
-.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
-.\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
-.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in the
+.\"    documentation and/or other materials provided with the distribution.
+.\" 3. All advertising materials mentioning features or use of this software
+.\"    must display the following acknowledgement:
+.\"    This product includes software developed by the University of
+.\"    California, Berkeley and its contributors.
+.\" 4. Neither the name of the University nor the names of its contributors
+.\"    may be used to endorse or promote products derived from this software
+.\"    without specific prior written permission.
 .\"
 .\"
-.\"     @(#)calendar.1 6.9 (Berkeley) 7/24/90
+.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
 .\"
 .\"
-.Dd July 24, 1990
+.\"     @(#)calendar.1 8.1 (Berkeley) 6/29/93
 .\"
 .\"
+.Dd June 29, 1993
 .Dt CALENDAR 1
 .Dt CALENDAR 1
-.Os BSD 4.4
+.Os
 .Sh NAME
 .Nm calendar
 .Nd reminder service
 .Sh SYNOPSIS
 .Nm calendar
 .Sh NAME
 .Nm calendar
 .Nd reminder service
 .Sh SYNOPSIS
 .Nm calendar
-.Op  \-a
+.Op Fl a
 .Sh DESCRIPTION
 .Nm Calendar
 .Sh DESCRIPTION
 .Nm Calendar
-checks the current directory for a file named named
-.Li calendar
+checks the current directory for a file named
+.Pa calendar
 and displays lines that begin with either today's date
 or tomorrow's.
 On Fridays, events on Friday through Monday are displayed.
 .Pp
 The following options are available:
 and displays lines that begin with either today's date
 or tomorrow's.
 On Fridays, events on Friday through Monday are displayed.
 .Pp
 The following options are available:
-.Tp Fl a
+.Bl -tag -width Ds
+.It Fl a
 Process the ``calendar'' files of all users and mail the results
 to them.
 This requires super-user privileges.
 Process the ``calendar'' files of all users and mail the results
 to them.
 This requires super-user privileges.
-.Tp
+.El
 .Pp
 .Pp
-A month and day should begin lines.
+Lines should begin with a month and day.
 They may be entered in almost any format, either numeric or as character
 strings.
 A single asterisk (``*'') matches every month.
 They may be entered in almost any format, either numeric or as character
 strings.
 A single asterisk (``*'') matches every month.
@@ -51,7 +65,7 @@ A month without a day matches the first of that month.
 Two numbers default to the month followed by the day.
 Lines with leading tabs default to the last entered date, allowing
 multiple line specifications for a single date.
 Two numbers default to the month followed by the day.
 Lines with leading tabs default to the last entered date, allowing
 multiple line specifications for a single date.
-By convention, dates followed by an asterisk are not fixed, i.e. change
+By convention, dates followed by an asterisk are not fixed, i.e., change
 from year to year.
 .Pp
 The ``calendar'' file is preprocessed by
 from year to year.
 .Pp
 The ``calendar'' file is preprocessed by
@@ -63,53 +77,52 @@ If the shared file is not referenced by a full pathname,
 searches in the current (or home) directory first, and then in the
 directory
 .Pa /usr/share/calendar .
 searches in the current (or home) directory first, and then in the
 directory
 .Pa /usr/share/calendar .
-Empty lines and lines protected by the C commenting syntax (/* ... */)
+Empty lines and lines protected by the C commenting syntax
+.Pq Li /* ... */
 are ignored.
 .Pp
 Some possible calendar entries:
 are ignored.
 .Pp
 Some possible calendar entries:
-.Pp
-.Ds I
+.Bd -unfilled -offset indent
 #include       <calendar.usholiday>
 #include       <calendar.birthday>
 
 6/15           ... June 15 (if ambiguous, will default to month/day).
 #include       <calendar.usholiday>
 #include       <calendar.birthday>
 
 6/15           ... June 15 (if ambiguous, will default to month/day).
-Jun. 15        ... June 15.
-15 June        ... June 15.
+Jun. 15                ... June 15.
+15 June                ... June 15.
 Thursday       ... Every Thursday.
 June           ... Every June 1st.
 15 *           ... 15th of every month.
 Thursday       ... Every Thursday.
 June           ... Every June 1st.
 15 *           ... 15th of every month.
-.De
-.Pp
+.Ed
 .Sh FILES
 The following default calendar files are provided:
 .Sh FILES
 The following default calendar files are provided:
-.Dw calendar.christian
-.Di L
-.Dp Pa calendar.birthday
-Births  and  deaths  of  famous ( and  not- so- famous) people.
-.Dp Pa calendar.christian
+.Pp
+.Bl -tag -width calendar.christian -compact
+.It Pa calendar.birthday
+Births and deaths of famous (and not-so-famous) people.
+.It Pa calendar.christian
 Christian holidays.
 This calendar should be updated yearly by the local system administrator
 so that roving holidays are set correctly for the current year.
 Christian holidays.
 This calendar should be updated yearly by the local system administrator
 so that roving holidays are set correctly for the current year.
-.Dp Pa calendar.computer
+.It Pa calendar.computer
 Days of special significance to computer people.
 Days of special significance to computer people.
-.Dp Pa calendar.history
+.It Pa calendar.history
 Everything  else,  mostly  U. S. historical events.
 Everything  else,  mostly  U. S. historical events.
-.Dp Pa calendar.holiday
+.It Pa calendar.holiday
 Other  holidays,  including  the  not-well-known,  obscure, and
 .Em really
 obscure.
 Other  holidays,  including  the  not-well-known,  obscure, and
 .Em really
 obscure.
-.Dp Pa calendar.judaic
+.It Pa calendar.judaic
 Jewish holidays.
 This calendar should be updated yearly by the local system administrator
 so that roving holidays are set correctly for the current year.
 Jewish holidays.
 This calendar should be updated yearly by the local system administrator
 so that roving holidays are set correctly for the current year.
-.Dp Pa calendar.music
+.It Pa calendar.music
 Musical  events,  births, and deaths.
 Musical  events,  births, and deaths.
-Strongly  oriented  toward  rock ' n' roll.
-.Dp Pa calendar.usholiday
+Strongly  oriented  toward  rock 'n' roll.
+.It Pa calendar.usholiday
 U.S. holidays.
 This calendar should be updated yearly by the local system administrator
 so that roving holidays are set correctly for the current year.
 U.S. holidays.
 This calendar should be updated yearly by the local system administrator
 so that roving holidays are set correctly for the current year.
-.Dp
+.El
 .Sh SEE ALSO
 .Xr at 1 ,
 .Xr cpp 1 ,
 .Sh SEE ALSO
 .Xr at 1 ,
 .Xr cpp 1 ,
@@ -126,11 +139,7 @@ first on the line.
 A
 .Nm
 command appeared in Version 7 AT&T UNIX.
 A
 .Nm
 command appeared in Version 7 AT&T UNIX.
-The version of
-.Nm calendar
-released with this man page
-is unrelated.
 .Sh BUGS
 .Nm Calendar
 .Sh BUGS
 .Nm Calendar
-doesn't handle events that move around from year to year, i.e.
+doesn't handle events that move around from year to year, i.e.,
 ``the last Monday in April''.
 ``the last Monday in April''.