summaryrefslogtreecommitdiffstats
path: root/scripts/cvsgettags
blob: 9869eb0633cd7df3f4b39a4c2247ee633796b024 (plain)
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
31
32
33
34
35
36
37
38
#!/bin/sh
#
# copyright (C) 2004 Roberto Teixeira <roberto@kde.org>
#
# This script is release under the GPL
#

# 
# This very simple script can be used to fetch available
# cvs tags for a group of files.
#
# Its usage is simple, simply type something like
#
#        gettags myfile.cpp myfile.h
#
# to get the available cvs tags for myfile.cpp and myfile.h
# otherwise simply type
#
#        gettags
#
# to fetch all available tags in the current directory and its
# subdirectories.
#

usage()
{
  echo "Ex.:"
  echo "  $0 [file1] [file2] ..." 
}

if test -z "$1"; then
  echo "Will test tags for all files and subdirectories under `pwd`. Hope it's right"
  echo "but if it is not, please inform the files you want to fetch the tags from."

  usage
fi

cvs log $@|tr "\n" "å"|sed 's/^.*symbolic names:å\(.*\)keyword subst.*$/\1/'|tr "å" "\n"