.\" $NetBSD: cvslatest.1,v 1.1.26.1 2023/12/18 13:52:37 martin Exp $ .\" Copyright (C) 2015 Thomas Klausner .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``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 AUTHORS 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 December 16, 2023 .Dt CVSLATEST 1 .Os .Sh NAME .Nm cvslatest .Nd find latest timestamp in a set of CVS trees .Sh SYNOPSIS .Nm .Op Fl di .Op Fl n Ar name .Ar dir Op ... .Sh DESCRIPTION .Nm recursively scans the directories given on the command line and looks for .Xr cvs 1 .Pa CVS/Entries files. .Nm then reads these files and parses the timestamps inside. Finally, .Nm prints the UNIX timestamp (seconds since UNIX epoch) of the newest file found. .Pp Supported options: .Bl -tag -width XnXnameXX .It Fl d Turn on debugging output. .It Fl i Ignore malformed timestamps in .Pa CVS/Entries files. .It Fl n Ar name Use .Ar name instead of .Pa CVS as the .Xr cvs 1 information directory. .El .Sh EXIT STATUS .Ex -std .Sh SEE ALSO .Xr cvs 1 , .Xr date 1 .Sh AUTHORS .An Christos Zoulas Aq Mt christos@NetBSD.org