summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorcvs2svn <cvs2svn@FreeBSD.org>1999-01-21 00:55:32 +0000
committercvs2svn <cvs2svn@FreeBSD.org>1999-01-21 00:55:32 +0000
commit76b5366091f76c9bc73570149ef5055648fc2c39 (patch)
tree590d020e0f2a5bea6e09d66d951a674443b21d67 /tools
parent4b4d01da6f07f7754ff6a6e4f5223e9f0984d1a6 (diff)
This commit was manufactured by cvs2svn to create tagrelease/3.0.0
'RELENG_3_0_0_RELEASE'.
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/README20
-rw-r--r--tools/tools/diffburst/Makefile9
-rw-r--r--tools/tools/diffburst/diffburst.119
-rw-r--r--tools/tools/diffburst/main.c44
-rw-r--r--tools/tools/editing/freebsd.el40
-rw-r--r--tools/tools/kdrv/sample.drvinfo6
-rw-r--r--tools/tools/kernxref/kernxref.sh18
-rw-r--r--tools/tools/scsi-defects/README2
-rwxr-xr-xtools/tools/upgrade/getosreldate.sh8
9 files changed, 13 insertions, 153 deletions
diff --git a/tools/tools/README b/tools/tools/README
index b305823f6169..ae36093ea7d5 100644
--- a/tools/tools/README
+++ b/tools/tools/README
@@ -1,4 +1,4 @@
-# $Id: README,v 1.14 1998/12/17 12:21:19 cracauer Exp $
+# $Id: README,v 1.11 1998/05/20 09:19:50 wosch Exp $
This directory is for tools.
@@ -7,21 +7,15 @@ other categories.
Please make a subdir per program, and add a brief description to this file.
-editing Editor modes and the like to help editing FreeBSD code.
-epfe Extract printing filter examples from printing.sgml.
-html-mv Rename HTML generated filenames to human readable filenames.
ifinfo Uses the interface MIB to print out all the information
an interface exports in an ugly form.
+kernxref Shellscript to cross reference symbols in the LINT kernel.
+epfe extract printing filter examples from printing.sgml
+tcl_bmake generates a bmake Makefile for src/lib/libtcl
kdrv KernelDriver; add/list/remove third-party kernel driver
source to/in/from a kernel source tree.
-kernxref Shellscript to cross reference symbols in the LINT kernel.
-mid Create a Message-ID database for mailing lists.
-portsinfo Generate list of new ports for last two weeks.
scsi-defects Get at the primary or grown defect list of a SCSI disk.
-tcl_bmake Generates a bmake Makefile for src/lib/libtcl.
+portsinfo Generate list of new ports for last two weeks.
+html-mv Rename HTML generated filenames to human readable filenames.
+mid Create a Message-ID database for mailing lists.
upgrade Scripts used for upgrading an installed system.
-vop_table Generates a HTML document that shows all the VOP's in
- the kernel.
-diffburst Reads the output of 'diff -r' and splits it into separate
- patch files, one per file. The files are named 'patch-XX'
- where XX is aa, ab, ac, ... Useful when creating ports.
diff --git a/tools/tools/diffburst/Makefile b/tools/tools/diffburst/Makefile
deleted file mode 100644
index 4e58e4cdd866..000000000000
--- a/tools/tools/diffburst/Makefile
+++ /dev/null
@@ -1,9 +0,0 @@
-# $Id: Makefile,v 1.1 1997/12/06 00:44:04 archie Exp $
-
-PROG= diffburst
-SRCS= main.c
-MAN1= diffburst.1
-
-COPTS+= -g -Wall
-
-.include <bsd.prog.mk>
diff --git a/tools/tools/diffburst/diffburst.1 b/tools/tools/diffburst/diffburst.1
deleted file mode 100644
index 91a33091ab52..000000000000
--- a/tools/tools/diffburst/diffburst.1
+++ /dev/null
@@ -1,19 +0,0 @@
-.Dd Jan 7, 1999
-.Dt DIFFBURST 1
-.Os BSD 4.4
-.Sh NAME
-.Nm diffburst
-.Nd split recursive diff output into separate files
-.Sh SYNOPSIS
-.Nm diffburst < input
-.Sh DESCRIPTION
-.Nm
-reads the output of a recursive diff from standard input,
-and writes it back out as a series of patchfiles, where each patchfile
-contains the diff for a single file. The files are named
-patch-aa, patch-ab, and so on.
-.Pp
-This program is intended to aid in developing FreeBSD ports,
-where the 'one patchfile per file' rule applies.
-.Sh AUTHOR
-Archie Cobbs <archie@whistle.com>
diff --git a/tools/tools/diffburst/main.c b/tools/tools/diffburst/main.c
deleted file mode 100644
index a38e40c5e1f1..000000000000
--- a/tools/tools/diffburst/main.c
+++ /dev/null
@@ -1,44 +0,0 @@
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-#include <err.h>
-
-/* Split a recursive diff into sub-patches to satisfy the requirement
- that each patch only patch a single file */
-
-int
-main(int ac, char *av[])
-{
- int ln;
- char line[8192];
- char suf[2] = { 'a', 'a' };
- FILE *fp = NULL;
-
- memset(line, 0, sizeof(line));
- for (ln = 1; fgets(line, sizeof(line) - 1, stdin); ln++)
- {
- if (line[strlen(line) - 1] != '\n')
- errx(1, "line %d is too long", ln);
- if (!strncmp(line, "diff", 4) && fp != NULL)
- {
- fclose(fp);
- fp = NULL;
- }
- if (fp == NULL)
- {
- char name[200];
-
- snprintf(name, sizeof(name), "patch-%c%c", suf[0], suf[1]);
- if (suf[1]++ == 'z')
- {
- suf[1] = 'a';
- suf[0]++;
- }
- if ((fp = fopen(name, "w")) == NULL)
- err(1, "%s", name);
- }
- fprintf(fp, "%s", line);
- }
- return(0);
-}
-
diff --git a/tools/tools/editing/freebsd.el b/tools/tools/editing/freebsd.el
deleted file mode 100644
index 63976b0d6b6e..000000000000
--- a/tools/tools/editing/freebsd.el
+++ /dev/null
@@ -1,40 +0,0 @@
-;;; This function switches C-mode so that it indents almost everything
-;;; as specified in FreeBSD's style(9). Tested with emacs-19.34 and
-;;; xemacs-20.4.
-;;;
-;;; Use "M-x bsd" in a C mode buffer to activate it.
-;;;
-;;; The only problem I found is top-level indenting:
-;;;
-;;; We want function definitions with the function name at the beginning
-;;; of a second line after the return type specification in the first:
-;;; > int
-;;; > foo(int bla)
-;;; But emacs c-mode can't treat this differently from other multiple-line
-;;; toplevel constructs:
-;;; > const char *const bar =
-;;; > "sometext";
-;;; which means the second line must be indented by hand.
-;;;
-;;; To make this the default, use a line like this, but you can't easily
-;;; switch back to default GNU style, since the old state isn't saved.
-;;; (add-hook 'c-mode-common-hook 'bsd)
-;;; As long as you don't have this in the c-mode hook you can edit GNU
-;;; and BSD style C sources within one emacs session with no problem.
-;;;
-;;; Please report problems and additions directly to cracauer@freebsd.org
-
-(defun bsd () (interactive)
- (c-set-style "bsd")
- (setq indent-tabs-mode t)
- ;; Use C-c C-s at points of source code so see which
- ;; c-set-offset is in effect for this situation
- (c-set-offset 'defun-block-intro 8)
- (c-set-offset 'statement-block-intro 8)
- (c-set-offset 'statement-case-intro 8)
- (c-set-offset 'substatement-open 4)
- (c-set-offset 'substatement 8)
- (c-set-offset 'arglist-cont-nonempty 4)
- (c-set-offset 'inclass 8)
- (c-set-offset 'knr-argdecl-intro 8)
- )
diff --git a/tools/tools/kdrv/sample.drvinfo b/tools/tools/kdrv/sample.drvinfo
index 7618d0b549e4..cd624cd873fc 100644
--- a/tools/tools/kdrv/sample.drvinfo
+++ b/tools/tools/kdrv/sample.drvinfo
@@ -2,7 +2,7 @@
# Sample driver information file for KernelDriver. See the top of
# the KernelDriver script for a more exact definition of the syntax.
#
-# $Id: sample.drvinfo,v 1.2 1998/05/06 05:45:17 msmith Exp $
+# $Id: sample.drvinfo,v 1.2 1998/05/04 03:31:03 doconnor Exp $
# Device driver name
#
@@ -39,6 +39,6 @@ linttext
#
# This driver causes your system to emit occasional digestive noises.
#
-device blorg0 at isa? port 0x123 irq 10 flags 0x10 drq 2
-device blorg1 at isa? port 0x234 irq 11 flags 0x10 drq 2
+device blorg0 at isa? port 0x123 irq 10 flags 0x10 drq 2 vector blorgintr
+device blorg1 at isa? port 0x234 irq 11 flags 0x10 drq 2 vector blorgintr
end
diff --git a/tools/tools/kernxref/kernxref.sh b/tools/tools/kernxref/kernxref.sh
index b29e8d6dd7d0..ca483c56942c 100644
--- a/tools/tools/kernxref/kernxref.sh
+++ b/tools/tools/kernxref/kernxref.sh
@@ -7,25 +7,13 @@
# this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
# ----------------------------------------------------------------------------
#
-# $Id: kernxref.sh,v 1.10 1998/12/06 21:39:07 archie Exp $
+# $Id$
#
# This shellscript will make a cross reference of the symbols of the LINT
# kernel.
-COMPILEDIR=/sys/compile
-KERNELNAME=LINT
-
-cd ${COMPILEDIR}/${KERNELNAME}
-if file vers.o | grep -q ELF; then
- OBJFORMAT=elf;
-else
- OBJFORMAT=aout;
-fi
-
-OBJFORMAT=${OBJFORMAT} nm -gon `echo *.o /lkm/*.o \
- | tr ' ' '\012' \
- | egrep -v '(aicasm|genassym)'` \
- | tr : ' ' | awk '
+cd /sys/compile/LINT
+nm -gon *.o /lkm/*.o | tr : ' ' | awk '
NF > 1 {
if (length($2) == 8) {
$2 = $3
diff --git a/tools/tools/scsi-defects/README b/tools/tools/scsi-defects/README
index bca470abc9b2..5e0a61647009 100644
--- a/tools/tools/scsi-defects/README
+++ b/tools/tools/scsi-defects/README
@@ -1,5 +1,3 @@
Peter Dufault's tools to extract the primary or grown defect list from
a SCSI disk, wrapped into Perl (for easier decoding of the list) by
Joerg Wunsch.
-
-This has not been ported CAM yet.
diff --git a/tools/tools/upgrade/getosreldate.sh b/tools/tools/upgrade/getosreldate.sh
deleted file mode 100755
index cb23ef310d12..000000000000
--- a/tools/tools/upgrade/getosreldate.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-#! /bin/sh
-# $Id$
-
-RELDATE=`sysctl -n kern.osreldate 2>/dev/null`
-if [ "x$RELDATE" = x ]; then
- RELDATE=200000 # assume something really old
-fi
-echo $RELDATE