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 04/14/98 at 21:20:31

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

  • Property mode set to 100644
File size: 979 bytes
RevLine 
[e348edd2]1#! /bin/sh
[f5ecb31]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
[e348edd2]21
[7c88bb74]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-"`
[e348edd2]24adafiles=`ls -1 $1/*.ad[sb] 2>/dev/null`
25
[7c88bb74]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
[e348edd2]29if [ "x${cfiles}" != x ] ; then
[f5ecb31]30  ${TOOLSBASE}/ctags-new -d -t -w -y ${cfiles}
[e348edd2]31  #mv tags tags.c
32fi
33
34if [ "x${adafiles}" != x ] ; then
[f5ecb31]35  ${TOOLSBASE}-src/ctags -d -t -x --no-warn ${adafiles}
[e348edd2]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.