base changes for moving and better error checking

This commit is contained in:
Joel Sherrill
1998-04-14 16:30:23 +00:00
parent e348edd2aa
commit f5ecb312f6

View File

@@ -1,15 +1,34 @@
#! /bin/sh #! /bin/sh
#
# Ctags wrapper
#
# Invokes the version shipped with src2html for C.
# Invokes the Ada patched GNU Emacs version for Ada.
#
# $Id$
TOOLSBASE=/usr1/rtems/rtemsdoc-work/tools/src2html
if [ ! -f ${TOOLSBASE}/ctags-new ]; then
echo Can not find ${TOOLSBASE}/ctags-new for C programs.
exit 1
fi
if [ ! -f ${TOOLSBASE}/ctags ]; then
echo Can not find ${TOOLSBASE}/ctags for Ada programs.
exit 1
fi
cfiles=`ls -1 $1/*.[ch] $1/*.inl 2>/dev/null | grep -v "/no-"` cfiles=`ls -1 $1/*.[ch] $1/*.inl 2>/dev/null | grep -v "/no-"`
adafiles=`ls -1 $1/*.ad[sb] 2>/dev/null` adafiles=`ls -1 $1/*.ad[sb] 2>/dev/null`
if [ "x${cfiles}" != x ] ; then if [ "x${cfiles}" != x ] ; then
/avenger/afcc/textools/src2html/ctags-new -d -t -w -y ${cfiles} ${TOOLSBASE}/ctags-new -d -t -w -y ${cfiles}
#mv tags tags.c #mv tags tags.c
fi fi
if [ "x${adafiles}" != x ] ; then if [ "x${adafiles}" != x ] ; then
/usr1/tmp/build/lib-src/ctags -d -t -x --no-warn ${adafiles} ${TOOLSBASE}-src/ctags -d -t -x --no-warn ${adafiles}
fi fi
# cat tags # cat tags
#mv tags tags.ada #mv tags tags.ada