Working kernel tags!

Submitted by:	Craig Leres <leres@ee.lbl.gov>
PR:		2806
This commit is contained in:
Jordan K. Hubbard 1999-07-02 04:00:01 +00:00
parent 739e3bdcf8
commit 93740fb962
4 changed files with 20 additions and 11 deletions

View File

@ -1,7 +1,7 @@
# Makefile.i386 -- with config changes.
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
# $Id: Makefile.i386,v 1.155 1999/06/28 07:19:51 phk Exp $
# $Id: Makefile.i386,v 1.156 1999/06/28 09:21:35 peter Exp $
#
# Makefile for FreeBSD
#
@ -222,7 +222,10 @@ links:
sh makelinks && rm -f dontlink
tags:
@echo "see $S/kern/Makefile for tags"
@[ -f .depend ] || { echo "you must make depend first"; exit 1; }
sh $S/conf/systags.sh
rm -f tags1
sed -e 's, ../, ,' tags > tags1
install install.debug:
@if [ ! -f ${KERNEL}${.TARGET:S/install//} ] ; then \

View File

@ -1,7 +1,7 @@
# Makefile.i386 -- with config changes.
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
# $Id: Makefile.i386,v 1.155 1999/06/28 07:19:51 phk Exp $
# $Id: Makefile.i386,v 1.156 1999/06/28 09:21:35 peter Exp $
#
# Makefile for FreeBSD
#
@ -222,7 +222,10 @@ links:
sh makelinks && rm -f dontlink
tags:
@echo "see $S/kern/Makefile for tags"
@[ -f .depend ] || { echo "you must make depend first"; exit 1; }
sh $S/conf/systags.sh
rm -f tags1
sed -e 's, ../, ,' tags > tags1
install install.debug:
@if [ ! -f ${KERNEL}${.TARGET:S/install//} ] ; then \

View File

@ -38,12 +38,12 @@
#
# First written May 16, 1992 by Van Jacobson, Lawrence Berkeley Laboratory.
#
# $Id$
# from: $Header: systags.sh,v 1.3 96/08/08 20:23:13 leres Exp $
rm -f tags tags.tmp tags.cfiles tags.sfiles tags.hfiles
MACHINE=`machine`
sed -e "s,\./machine/,../../$MACHINE/include/,g" \
-e 's,[a-z][^/ ]*/\.\./,,g' .depend | awk '{
MACHINE=`uname -m`
sed -e "s, machine/, ../../$MACHINE/include/,g" \
-e 's,[a-z][^/ ]*/\.\./,,g' .depend | awk '{
for (i = 1; i <= NF; ++i) {
t = substr($i, length($i) - 1)
if (t == ".c")
@ -64,7 +64,7 @@ sed -e "s,\./machine/,../../$MACHINE/include/,g" \
}'
ctags -t -d -w `cat tags.cfiles tags.hfiles tags.sfiles`
egrep -o "^ENTRY\(.*\)|^ALTENTRY\(.*\)" `cat tags.sfiles` | \
egrep "^ENTRY\(.*\)|^ALTENTRY\(.*\)" `cat tags.sfiles` | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$/;" >> tags
mv tags tags.tmp

View File

@ -1,7 +1,7 @@
# Makefile.i386 -- with config changes.
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
# $Id: Makefile.i386,v 1.155 1999/06/28 07:19:51 phk Exp $
# $Id: Makefile.i386,v 1.156 1999/06/28 09:21:35 peter Exp $
#
# Makefile for FreeBSD
#
@ -222,7 +222,10 @@ links:
sh makelinks && rm -f dontlink
tags:
@echo "see $S/kern/Makefile for tags"
@[ -f .depend ] || { echo "you must make depend first"; exit 1; }
sh $S/conf/systags.sh
rm -f tags1
sed -e 's, ../, ,' tags > tags1
install install.debug:
@if [ ! -f ${KERNEL}${.TARGET:S/install//} ] ; then \