Sync usage and synopsis. Add rcsid.
This commit is contained in:
parent
be2f5ef8c2
commit
a5a49ca8ab
@ -22,7 +22,7 @@
|
|||||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
.\" SUCH DAMAGE.
|
.\" SUCH DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.\" $Id: ncal.1,v 1.2 1997/12/19 21:41:21 helbig Exp $
|
.\" $Id: ncal.1,v 1.3 1998/01/03 15:10:11 helbig Exp $
|
||||||
.\"
|
.\"
|
||||||
.Dd December 16, 1997
|
.Dd December 16, 1997
|
||||||
.Dt CAL 1
|
.Dt CAL 1
|
||||||
@ -37,7 +37,7 @@
|
|||||||
.Op Oo Ar month Oc Ar \ year
|
.Op Oo Ar month Oc Ar \ year
|
||||||
.Nm ncal
|
.Nm ncal
|
||||||
.Op Fl jJpwy
|
.Op Fl jJpwy
|
||||||
.Op Fl s Ar country code
|
.Op Fl s Ar country_code
|
||||||
.Op Oo Ar month Oc Ar \ year
|
.Op Oo Ar month Oc Ar \ year
|
||||||
.Nm ncal
|
.Nm ncal
|
||||||
.Op Fl Jeo
|
.Op Fl Jeo
|
||||||
@ -51,8 +51,9 @@ The new format is a little cramped but it makes a year fit
|
|||||||
on a 25x80 terminal.
|
on a 25x80 terminal.
|
||||||
If arguments are not specified,
|
If arguments are not specified,
|
||||||
the current month is displayed.
|
the current month is displayed.
|
||||||
|
.Pp
|
||||||
The options are as follows:
|
The options are as follows:
|
||||||
.Bl -tag -width Ds
|
.Bl -tag -width indent
|
||||||
.It Fl J
|
.It Fl J
|
||||||
Display Julian Calendar, if combined with the
|
Display Julian Calendar, if combined with the
|
||||||
.Fl e
|
.Fl e
|
||||||
@ -70,10 +71,10 @@ Calendar as they are assumed by
|
|||||||
.Nm ncal .
|
.Nm ncal .
|
||||||
The country code as determined from the local environment is marked
|
The country code as determined from the local environment is marked
|
||||||
with an asterisk.
|
with an asterisk.
|
||||||
.It Fl s Ar country-code
|
.It Fl s Ar country_code
|
||||||
Assume the switch from Julian to Gregorian Calendar at the date
|
Assume the switch from Julian to Gregorian Calendar at the date
|
||||||
associated with the
|
associated with the
|
||||||
.Ar country-code .
|
.Ar country_code .
|
||||||
If not specified,
|
If not specified,
|
||||||
.Nm ncal
|
.Nm ncal
|
||||||
tries to guess the switch date from the local environment or
|
tries to guess the switch date from the local environment or
|
||||||
|
@ -22,9 +22,13 @@
|
|||||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
* 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
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
|
||||||
* $Id: ncal.c,v 1.3 1998/01/03 15:10:11 helbig Exp $
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef lint
|
||||||
|
static const char rcsid[] =
|
||||||
|
"$Id$";
|
||||||
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <calendar.h>
|
#include <calendar.h>
|
||||||
#include <err.h>
|
#include <err.h>
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
@ -170,7 +174,7 @@ date *sdate(int ndays, struct date * d);
|
|||||||
date *sdateb(int ndays, struct date * d);
|
date *sdateb(int ndays, struct date * d);
|
||||||
int sndays(struct date * d);
|
int sndays(struct date * d);
|
||||||
int sndaysb(struct date * d);
|
int sndaysb(struct date * d);
|
||||||
void usage(void);
|
static void usage(void);
|
||||||
int weekdayb(int nd);
|
int weekdayb(int nd);
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -331,14 +335,14 @@ main(int argc, char *argv[])
|
|||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
fprintf(stderr,
|
fprintf(stderr, "%s\n%s\n%s\n",
|
||||||
"usage: cal [-jy] [month[year]]\n"
|
"usage: cal [-jy] [month[year]]",
|
||||||
"usage: ncal [-Jjpwy] [-s country_code] [[month] year]\n"
|
" ncal [-Jjpwy] [-s country_code] [[month] year]",
|
||||||
"usage: ncal [-Jeo] [year]\n");
|
" ncal [-Jeo] [year]");
|
||||||
exit(EX_USAGE);
|
exit(EX_USAGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user