File indexing completed on 2024-12-15 05:11:24

0001 #!/bin/sh
0002 #
0003 # copyright (C) 2004 Roberto Teixeira <roberto@kde.org>
0004 #
0005 # This script is release under the GPL
0006 #
0007 
0008 # 
0009 # This very simple script can be used to fetch available
0010 # cvs tags for a group of files.
0011 #
0012 # Its usage is simple, simply type something like
0013 #
0014 #        gettags myfile.cpp myfile.h
0015 #
0016 # to get the available cvs tags for myfile.cpp and myfile.h
0017 # otherwise simply type
0018 #
0019 #        gettags
0020 #
0021 # to fetch all available tags in the current directory and its
0022 # subdirectories.
0023 #
0024 
0025 usage()
0026 {
0027   echo "Ex.:"
0028   echo "  $0 [file1] [file2] ..." 
0029 }
0030 
0031 if test -z "$1"; then
0032   echo "Will test tags for all files and subdirectories under `pwd`. Hope it's right"
0033   echo "but if it is not, please inform the files you want to fetch the tags from."
0034 
0035   usage
0036 fi
0037 
0038 cvs log $@|tr "\n" "å"|sed 's/^.*symbolic names:å\(.*\)keyword subst.*$/\1/'|tr "å" "\n"