Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/amd Add code to DTRT with the info file, now that w...
details: https://anonhg.NetBSD.org/src/rev/a61f979c3606
branches: trunk
changeset: 474823:a61f979c3606
user: hubertf <hubertf%NetBSD.org@localhost>
date: Thu Jul 22 01:14:22 1999 +0000
description:
Add code to DTRT with the info file, now that we can use it.
Patch submitted in PR by Minoura Makoto <minoura%hauN.org@localhost>
I'll not re-import amd but rather perform the steps to get
things going manually.
diffstat:
usr.sbin/amd/amd2netbsd | 53 +++++++++++++++++++++++++++++++-----------------
1 files changed, 34 insertions(+), 19 deletions(-)
diffs (97 lines):
diff -r 0b2890f29e7f -r a61f979c3606 usr.sbin/amd/amd2netbsd
--- a/usr.sbin/amd/amd2netbsd Thu Jul 22 01:05:20 1999 +0000
+++ b/usr.sbin/amd/amd2netbsd Thu Jul 22 01:14:22 1999 +0000
@@ -1,6 +1,6 @@
#!/usr/local/bin/perl
#
-# $NetBSD: amd2netbsd,v 1.19 1999/02/01 19:05:09 christos Exp $
+# $NetBSD: amd2netbsd,v 1.20 1999/07/22 01:14:22 hubertf Exp $
#
# Perl script to convert a standard distribution directory for am-utils into
# a NetBSD source tree.
@@ -118,10 +118,7 @@
@wiretestef = ();
-@docf = ("am-utils.info", "am-utils.info-1", "am-utils.info-2",
- "am-utils.info-3", "am-utils.info-4", "am-utils.info-5",
- "am-utils.info-6", "am-utils.texi", "hlfsd.ps", "texinfo.tex",
- "version.texi");
+@docf = ("am-utils.texi", "hlfsd.ps", "texinfo.tex", "version.texi");
@docdf = ();
@@ -156,6 +153,18 @@
elsif ($t =~ /.*\.[yl]/) {
$hdr = 1;
}
+ elsif ($t =~ /am-utils\.texi/) {
+ $hdr = 2;
+ }
+ elsif ($t =~ /.*\.texi/) {
+ print OFILE '@c', "\t", '$', 'NetBSD', '$', "\n";
+ }
+ elsif ($t =~ /.*\.tex$/) {
+ print OFILE "%\t", '$', 'NetBSD', '$', "\n";
+ }
+ elsif ($t =~ /.*\.ps/) {
+ $hdr = 3;
+ }
else {
print OFILE '$', 'NetBSD', '$', "\n";
}
@@ -167,6 +176,21 @@
next;
}
}
+ elsif ($hdr == 2) {
+ if (/\\input[ \t]+texinfo/) {
+ print OFILE $_;
+ print OFILE '@c', "\t", '$', 'NetBSD', '$', "\n";
+ $hdr = 0;
+ next;
+ }
+ }
+ elsif ($hdr == 3) {
+ # First line is magic. Insert Id between lines 1 and 2.
+ print OFILE $_;
+ print OFILE "%\t", '$', 'NetBSD', '$', "\n";
+ $hdr = 0;
+ next;
+ }
if ($state == 2) {
if (/#endif/) {
print OFILE "#else\n__RCSID(", '"$', 'NetBSD', '$"',
@@ -398,7 +422,7 @@
__END__
%% file usr.sbin/amd/Makefile
%% NetBSD #
-SUBDIR= libamu amd amq hlfsd fixmount fsinfo mk-amd-map pawd wire-test
+SUBDIR= libamu amd amq hlfsd fixmount fsinfo mk-amd-map pawd wire-test doc
all-amd all-amq all-hlfsd all-fixmount all-fsinfo all-mk-amd-map all-pawd \
all-wire-test: all-libamu
@@ -560,19 +584,10 @@
%% file usr.sbin/amd/doc/Makefile
%% NetBSD #
-PROG = am-utils
-SRCS = am-utils.texinfo
-
-${PROG}: am-utils.dvi
-
-am-utils.dvi: ${SRCS}
- -tex am-utils.texinfo; tex am-utils.texinfo
-
-clean:
- -rm -f am-utils.aux am-utils.cp am-utils.cps am-utils.dvi am-utils.fn \
- am-utils.fns am-utils.ky am-utils.kys am-utils.log am-utils.pg \
- am-utils.pgs am-utils.toc am-utils.tp am-utils.tps am-utils.vr \
- am-utils.vrs
+TEXINFO = am-utils.info
+INFOFLAGS = -I${.CURDIR}
+
+.include <bsd.info.mk>
%% file usr.sbin/amd/include/config.h
/* config.h. Generated automatically by configure. */
/* aux/config.h.in. Generated automatically from ./aux/configure.in by autoheader. */
Home |
Main Index |
Thread Index |
Old Index