summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1999-07-02 04:00:01 +0000
committerjkh <jkh@FreeBSD.org>1999-07-02 04:00:01 +0000
commit1473f599fcb93ef7f7a2db81428f6d9016b15704 (patch)
tree9a0607b0764e9f026eb35a51cfb7f342f354529e
parentdf3583f21bf8067bed5c714713c91f1d02443552 (diff)
downloadFreeBSD-src-1473f599fcb93ef7f7a2db81428f6d9016b15704.zip
FreeBSD-src-1473f599fcb93ef7f7a2db81428f6d9016b15704.tar.gz
Working kernel tags!
Submitted by: Craig Leres <leres@ee.lbl.gov> PR: 2806
-rw-r--r--sys/conf/Makefile.i3867
-rw-r--r--sys/conf/Makefile.powerpc7
-rw-r--r--sys/conf/systags.sh10
-rw-r--r--sys/i386/conf/Makefile.i3867
4 files changed, 20 insertions, 11 deletions
diff --git a/sys/conf/Makefile.i386 b/sys/conf/Makefile.i386
index 6a7a29e..b889f7d 100644
--- a/sys/conf/Makefile.i386
+++ b/sys/conf/Makefile.i386
@@ -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 \
diff --git a/sys/conf/Makefile.powerpc b/sys/conf/Makefile.powerpc
index 6a7a29e..b889f7d 100644
--- a/sys/conf/Makefile.powerpc
+++ b/sys/conf/Makefile.powerpc
@@ -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 \
diff --git a/sys/conf/systags.sh b/sys/conf/systags.sh
index 4cda02a..f046841 100644
--- a/sys/conf/systags.sh
+++ b/sys/conf/systags.sh
@@ -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
diff --git a/sys/i386/conf/Makefile.i386 b/sys/i386/conf/Makefile.i386
index 6a7a29e..b889f7d 100644
--- a/sys/i386/conf/Makefile.i386
+++ b/sys/i386/conf/Makefile.i386
@@ -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 \
OpenPOWER on IntegriCloud