author | zecke <zecke> | 2002-07-23 12:21:02 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-07-23 12:21:02 (UTC) |
commit | 1a52af777b36e92b5c8414b1438d0889c42ad8de (patch) (unidiff) | |
tree | 787cb9996fc3ba6f559000b2435129be515033c8 /scripts/cvsversion | |
parent | 32724310c6563a52f61ea99d8a0e34df6f973faf (diff) | |
download | opie-1a52af777b36e92b5c8414b1438d0889c42ad8de.zip opie-1a52af777b36e92b5c8414b1438d0889c42ad8de.tar.gz opie-1a52af777b36e92b5c8414b1438d0889c42ad8de.tar.bz2 |
some neat KDE scripts which makes living with
cvs more easy
Carsten said I should commit then
-rw-r--r-- | scripts/cvsversion | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/scripts/cvsversion b/scripts/cvsversion new file mode 100644 index 0000000..e14d16d --- a/dev/null +++ b/scripts/cvsversion | |||
@@ -0,0 +1,33 @@ | |||
1 | #!/bin/sh | ||
2 | d=`dirname $1` | ||
3 | f=`basename $1` | ||
4 | cat $d/CVS/Entries | grep "\/$f\/" | gawk 'BEGIN { FS = "/" } { print $3 }' | ||
5 | exit 0 | ||
6 | |||
7 | =head1 NAME | ||
8 | |||
9 | cvsversion -- Displays version of the file passed as argument. | ||
10 | |||
11 | =head1 SYNOPSIS | ||
12 | |||
13 | cvsversion <file> | ||
14 | |||
15 | =head1 DESCRIPTION | ||
16 | |||
17 | cvsversion displays the version in CVS of a file, as known by the local | ||
18 | checked out directory. No connection is required to the CVS server. | ||
19 | It can be used in other scripts, or simply to ask | ||
20 | for diffs using | ||
21 | |||
22 | cvs diff -r <version> [-r <version>] <file> | ||
23 | |||
24 | =head1 EXAMPLES | ||
25 | |||
26 | cd baseline/kdelibs ; cvsversion configure.in | ||
27 | cvsversion baseline/kdelibs/configure.in | ||
28 | |||
29 | =head1 AUTHOR | ||
30 | |||
31 | David Faure <faure@kde.org> | ||
32 | |||
33 | =cut \ No newline at end of file | ||