File: cvsgettags

package info (click to toggle)
kde-dev-scripts 4%3A18.08.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,496 kB
  • sloc: perl: 15,466; lisp: 5,627; sh: 4,157; python: 3,892; ruby: 2,158; makefile: 16; sed: 9
file content (38 lines) | stat: -rwxr-xr-x 846 bytes parent folder | download | duplicates (7)
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"