~ubuntu-branches/ubuntu/edgy/rpm/edgy

« back to all changes in this revision

Viewing changes to db/dist/s_tags

  • Committer: Bazaar Package Importer
  • Author(s): Joey Hess
  • Date: 2002-01-22 20:56:57 UTC
  • Revision ID: james.westby@ubuntu.com-20020122205657-l74j50mr9z8ofcl5
Tags: upstream-4.0.3
ImportĀ upstreamĀ versionĀ 4.0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -
 
2
#       $Id: s_tags,v 1.8 2001/04/10 20:43:58 bostic Exp $
 
3
#
 
4
# Build tags files.
 
5
 
 
6
files="../include/*.h \
 
7
        ../include/*.in \
 
8
        ../btree/*.[ch] \
 
9
        ../clib/*.[ch] \
 
10
        ../common/*.[ch] \
 
11
        ../db/*.[ch] \
 
12
        ../db185/*.[ch] \
 
13
        ../dbm/*.[ch] \
 
14
        ../env/*.[ch] \
 
15
        ../hash/*.[ch] \
 
16
        ../hsearch/*.[ch] \
 
17
        ../lock/*.[ch] \
 
18
        ../log/*.[ch] \
 
19
        ../mp/*.[ch] \
 
20
        ../mutex/*.[ch] \
 
21
        ../os/*.[ch] \
 
22
        ../qam/*.[ch] \
 
23
        ../rpc_client/*.[ch] \
 
24
        ../rpc_server/*.[ch] \
 
25
        ../tcl/*.[ch] \
 
26
        ../txn/*.[ch] \
 
27
        ../xa/*.[ch] \
 
28
        ../cxx/*.cpp \
 
29
        ../libdb_java/*.[ch]"
 
30
 
 
31
f=tags
 
32
echo "Building $f"
 
33
rm -f $f
 
34
 
 
35
# Figure out what flags this ctags accepts.
 
36
flags=""
 
37
if ctags -d ../db/db.c 2>/dev/null; then
 
38
        flags="-d $flags"
 
39
fi
 
40
if ctags -t ../db/db.c 2>/dev/null; then
 
41
        flags="-t $flags"
 
42
fi
 
43
if ctags -w ../db/db.c 2>/dev/null; then
 
44
        flags="-w $flags"
 
45
fi
 
46
 
 
47
ctags $flags $files 2>/dev/null
 
48
chmod 444 $f