/usr/bin/cvsversion is in kdesdk-scripts 4:4.13.0-0ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | #!/bin/sh
exec awk -F / "{ if (\$2 == \"`basename $1`\") print \$3 }" < `dirname $1`/CVS/Entries
=head1 NAME
cvsversion -- Displays version of the file passed as argument.
=head1 SYNOPSIS
cvsversion <file>
=head1 DESCRIPTION
cvsversion displays the version in CVS of a file, as known by the local
checked out directory. No connection is required to the CVS server.
It can be used in other scripts, or simply to ask
for diffs using
cvs diff -r <version> [-r <version>] <file>
=head1 EXAMPLES
cd baseline/kdelibs ; cvsversion configure.in
cvsversion baseline/kdelibs/configure.in
=head1 AUTHOR
David Faure <faure@kde.org>
=cut
|