xref: /netbsd-src/usr.bin/cvslatest/cvslatest.1 (revision bdc22b2e01993381dcefeff2bc9b56ca75a4235c)
1.\" $NetBSD: cvslatest.1,v 1.1 2016/01/24 17:08:16 christos Exp $
2.\" Copyright (C) 2015 Thomas Klausner
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\"    notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\"    notice, this list of conditions and the following disclaimer in
11.\"    the documentation and/or other materials provided with the
12.\"    distribution.
13.\"
14.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
15.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
18.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
20.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
21.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
22.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
23.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
24.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25.\"
26.Dd January 7, 2016
27.Dt CVSLATEST 1
28.Os
29.Sh NAME
30.Nm cvslatest
31.Nd find latest timestamp in a set of CVS trees
32.Sh SYNOPSIS
33.Nm
34.Op Fl di
35.Op Fl n Ar name
36.Ar dir Op ...
37.Sh DESCRIPTION
38.Nm
39recursively scans the directories given on the command line
40and looks for
41.Xr cvs 1
42.Pa CVS/Entries
43files.
44.Nm
45then reads these files and parses the timestamps inside.
46Finally,
47.Nm
48prints the UNIX timestamp (seconds since UNIX epoch) of the
49newest file found.
50.Pp
51Supported options:
52.Bl -tag -width XnXnameXX
53.It Fl d
54Turn on debugging output.
55.It Fl i
56Ignore malformed timestamps in
57.Pa CVS/Entries
58files.
59.It Fl n Ar name
60Use
61.Ar name
62instead of
63.Pa CVS
64as the
65.Xr cvs 1
66information directory.
67.El
68.Sh EXIT STATUS
69.Ex -std
70.Sh SEE ALSO
71.Xr cvs 1 ,
72.Xr date 1
73.Sh RETURN VALUES
74.Ex -std
75.Sh AUTHORS
76.An Christos Zoulas Aq Mt christos@NetBSD.org
77