| 1 | #!/bin/sh - |
| 2 | # $Id$ |
| 3 | # |
| 4 | # Build tags files. |
| 5 | |
| 6 | cd tagdir |
| 7 | files=`echo ../../src/dbinc/*.h \ |
| 8 | ../../src/dbinc/*.in \ |
| 9 | ../../src/btree/*.[ch] \ |
| 10 | ../../src/clib/*.[ch] \ |
| 11 | ../../src/common/*.[ch] \ |
| 12 | ../../src/crypto/*.[ch] \ |
| 13 | ../../src/crypto/mersenne/*.[ch] \ |
| 14 | ../../src/crypto/rijndael/*.[ch] \ |
| 15 | ../../src/db/*.[ch] \ |
| 16 | ../../lang/db185/*.[ch] \ |
| 17 | ../../lang/dbm/*.[ch] \ |
| 18 | ../../src/dbreg/*.[ch] \ |
| 19 | ../../src/env/*.[ch] \ |
| 20 | ../../src/fileops/*.[ch] \ |
| 21 | ../../src/hash/*.[ch] \ |
| 22 | ../../src/hmac/*.[ch] \ |
| 23 | ../../src/hsearch/*.[ch] \ |
| 24 | ../../src/lock/*.[ch] \ |
| 25 | ../../src/log/*.[ch] \ |
| 26 | ../../src/mp/*.[ch] \ |
| 27 | ../../src/mutex/*.[ch] \ |
| 28 | ../../src/os/*.[ch] \ |
| 29 | ../../src/os_qnx/*.[ch] \ |
| 30 | ../../src/qam/*.[ch] \ |
| 31 | ../../src/rep/*.[ch] \ |
| 32 | ../../src/repmgr/*.[ch] \ |
| 33 | ../../src/sequence/*.[ch] \ |
| 34 | ../../lang/tcl/*.[ch] \ |
| 35 | ../../src/txn/*.[ch] \ |
| 36 | ../../src/xa/*.[ch] \ |
| 37 | ../../lang/cxx/*.cpp \ |
| 38 | ../../lang/java/libdb_java/*.[ch] | sed 's/[^ ]*stub.c//g'` |
| 39 | |
| 40 | f=tags |
| 41 | echo "Building $f" |
| 42 | rm -f $f |
| 43 | |
| 44 | # Figure out what flags this ctags accepts. |
| 45 | flags="" |
| 46 | if ctags -d ../../src/db/db.c 2>/dev/null; then |
| 47 | flags="-d $flags" |
| 48 | fi |
| 49 | if ctags -t ../../src/db/db.c 2>/dev/null; then |
| 50 | flags="-t $flags" |
| 51 | fi |
| 52 | if ctags -w ../../src/db/db.c 2>/dev/null; then |
| 53 | flags="-w $flags" |
| 54 | fi |
| 55 | |
| 56 | ctags $flags $files 2>/dev/null |
| 57 | |
| 58 | for i in test/perf testrrepmgr testrserver; do |
| 59 | test -d ../../$i || continue |
| 60 | |
| 61 | f=../../$i/tags |
| 62 | echo "Building $f" |
| 63 | (cd ../../$i && ctags $flags *.[ch] 2>/dev/null) |
| 64 | done |