Initial Commit
[packages] / xemacs-packages / oo-browser / br-c-tags
1 #!/bin/sh
2 #
3 # SUMMARY:      Build feature tags for default C construct classes.
4 # USAGE:        <script-name> <ootags-program> <tags-file-to-build> <root-dir-to-search> [... <root-dir-to-search>]
5 #
6 # AUTHOR:       Bob Weiner
7 # ORG:          BeOpen.com
8 #               The Force for Open Source(TM)
9 #
10 #               Web:    www.beopen.com - Learn all about Open Source.
11 #               E-mail: <info@beopen.com>  
12 #
13 # ORIG-DATE:     3-May-95 at 10:39:37
14 # LAST-MOD:      9-Jun-99 at 18:03:42 by Bob Weiner
15 #
16 #
17 # Copyright (C) 1995-1999  BeOpen.com
18 # See the file BR-COPY for license information.
19 #
20 # This file is part of the OO-Browser.
21 #
22 # DESCRIPTION:  
23 # DESCRIP-END.
24
25 dir=`pwd`
26 ootags=$1
27 ftr_file=$2
28 shift 2
29 src_files=`dirname $ftr_file`/src_files$$
30 tags_file=`dirname $ftr_file`/TAGS
31
32 cd $1
33 \find $* -name CVS -prune -o -name RCS -prune \
34          -name SCCS -prune -o -name .E -prune \
35    -o -name "*.[mchMCH]" -print -o -name "*.[chCH][chpCHP]" -print \
36    -o -name "*.[chCH][chpCHPx][pPx]" -print > $src_files
37 cat $src_files | ${ootags} - --c++ --oo-browser -o $ftr_file
38 cat $src_files | ${ootags} - --c++ -o $tags_file
39 rm -f $src_files