source: rtems/doc/tools/src2html1.4a/ctags-wr @ 7c88bb74

4.104.114.84.95
Last change on this file since 7c88bb74 was 7c88bb74, checked in by Joel Sherrill <joel.sherrill@…>, on Apr 14, 1998 at 9:20:31 PM

RTEMS stuff now browseable for 1st time. Not completed.

  • Property mode set to 100644
File size: 979 bytes
Line 
1#! /bin/sh
2#
3#  Ctags wrapper
4#
5#  Invokes the version shipped with src2html for C.
6#  Invokes the Ada patched GNU Emacs version for Ada.
7#
8#  $Id$
9
10TOOLSBASE=/usr1/rtems/rtemsdoc-work/tools/src2html
11
12if [ ! -f ${TOOLSBASE}/ctags-new ]; then
13  echo Can not find ${TOOLSBASE}/ctags-new for C programs.
14  exit 1
15fi
16
17if [ ! -f ${TOOLSBASE}/ctags ]; then
18  echo Can not find ${TOOLSBASE}/ctags for Ada programs.
19  exit 1
20fi
21
22cfiles=`find $1 -name "*.[ch]" -o "*.inl" 2>/dev/null | grep -v "/no-"`
23adafiles=`find $1 -name "*.ad[sb]" 2>/dev/null | grep -v "/no-"`
24adafiles=`ls -1 $1/*.ad[sb] 2>/dev/null`
25
26#cfiles=`ls -1 $1/*.[ch] $1/*.inl 2>/dev/null | grep -v "/no-"`
27#adafiles=`ls -1 $1/*.ad[sb] 2>/dev/null`
28
29if [ "x${cfiles}" != x ] ; then
30  ${TOOLSBASE}/ctags-new -d -t -w -y ${cfiles}
31  #mv tags tags.c
32fi
33
34if [ "x${adafiles}" != x ] ; then
35  ${TOOLSBASE}-src/ctags -d -t -x --no-warn ${adafiles}
36fi
37# cat tags
38#mv tags tags.ada
39#
40#cat tags.c tags.ada
41#rm -f tags.c tags.ada
Note: See TracBrowser for help on using the repository browser.