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

4.104.114.84.95
Last change on this file since f5ecb31 was f5ecb31, checked in by Joel Sherrill <joel.sherrill@…>, on 04/14/98 at 16:30:23

base changes for moving and better error checking

  • Property mode set to 100644
File size: 798 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=`ls -1 $1/*.[ch] $1/*.inl 2>/dev/null | grep -v "/no-"`
23adafiles=`ls -1 $1/*.ad[sb] 2>/dev/null`
24
25if [ "x${cfiles}" != x ] ; then
26  ${TOOLSBASE}/ctags-new -d -t -w -y ${cfiles}
27  #mv tags tags.c
28fi
29
30if [ "x${adafiles}" != x ] ; then
31  ${TOOLSBASE}-src/ctags -d -t -x --no-warn ${adafiles}
32fi
33# cat tags
34#mv tags tags.ada
35#
36#cat tags.c tags.ada
37#rm -f tags.c tags.ada
Note: See TracBrowser for help on using the repository browser.