Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/nvi Add build glue and docs



details:   https://anonhg.NetBSD.org/src/rev/d33e04233091
branches:  trunk
changeset: 791528:d33e04233091
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Nov 22 16:00:45 2013 +0000

description:
Add build glue and docs

diffstat:

 external/bsd/nvi/Makefile                         |    17 +
 external/bsd/nvi/Makefile.inc                     |    10 +
 external/bsd/nvi/catalog/Makefile                 |   103 +
 external/bsd/nvi/docs/Makefile                    |     5 +
 external/bsd/nvi/docs/USD.doc/Makefile            |     5 +
 external/bsd/nvi/docs/USD.doc/edit/Makefile       |    24 +
 external/bsd/nvi/docs/USD.doc/edit/edit.vindex    |   113 +
 external/bsd/nvi/docs/USD.doc/exref/Makefile      |    21 +
 external/bsd/nvi/docs/USD.doc/vi.ref/Makefile     |    35 +
 external/bsd/nvi/docs/USD.doc/vi.ref/ex.cmd.roff  |  1926 +++++++++++++
 external/bsd/nvi/docs/USD.doc/vi.ref/merge.awk    |    18 +
 external/bsd/nvi/docs/USD.doc/vi.ref/ref.so       |   105 +
 external/bsd/nvi/docs/USD.doc/vi.ref/set.opt.roff |  1312 ++++++++
 external/bsd/nvi/docs/USD.doc/vi.ref/vi.cmd.roff  |  3097 +++++++++++++++++++++
 external/bsd/nvi/docs/USD.doc/vi.ref/vi.ref       |  1851 ++++++++++++
 external/bsd/nvi/docs/USD.doc/vitut/Makefile      |    26 +
 external/bsd/nvi/docs/ev                          |    55 +
 external/bsd/nvi/docs/help                        |   230 +
 external/bsd/nvi/docs/info/Makefile               |    12 +
 external/bsd/nvi/docs/internals/autowrite         |    88 +
 external/bsd/nvi/docs/internals/context           |    32 +
 external/bsd/nvi/docs/internals/cscope.NOTES      |   142 +
 external/bsd/nvi/docs/internals/gdb.script        |    76 +
 external/bsd/nvi/docs/internals/input             |   350 ++
 external/bsd/nvi/docs/internals/openmode          |    36 +
 external/bsd/nvi/docs/internals/quoting           |   208 +
 external/bsd/nvi/docs/internals/structures        |    68 +
 external/bsd/nvi/nvi2netbsd                       |   112 +
 external/bsd/nvi/usr.bin/Makefile                 |     3 +
 external/bsd/nvi/usr.bin/nvi/Makefile             |   103 +
 external/bsd/nvi/usr.bin/nvi/compat.h             |   199 +
 external/bsd/nvi/usr.bin/nvi/config.h             |   283 +
 external/bsd/nvi/usr.bin/nvi/ipc_gen.c            |   230 +
 external/bsd/nvi/usr.bin/nvi/pathnames.h          |    49 +
 external/bsd/nvi/usr.bin/nvi/port.h               |   199 +
 external/bsd/nvi/usr.bin/recover/Makefile         |     7 +
 external/bsd/nvi/usr.bin/recover/virecover        |    49 +
 external/bsd/nvi/usr.bin/recover/virecover.8      |    90 +
 38 files changed, 11289 insertions(+), 0 deletions(-)

diffs (truncated from 11441 to 300 lines):

diff -r 21137ff8ea46 -r d33e04233091 external/bsd/nvi/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/nvi/Makefile Fri Nov 22 16:00:45 2013 +0000
@@ -0,0 +1,17 @@
+#      $NetBSD: Makefile,v 1.1 2013/11/22 16:00:45 christos Exp $
+
+.include "Makefile.inc"
+
+.include <bsd.own.mk>
+
+.if ${MKSHARE} != "no"
+SUBDIR+= catalog
+.endif
+
+SUBDIR+= usr.bin
+
+.if ${MKDOC} != "no"
+SUBDIR+= docs
+.endif
+
+.include <bsd.subdir.mk>
diff -r 21137ff8ea46 -r d33e04233091 external/bsd/nvi/Makefile.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/nvi/Makefile.inc     Fri Nov 22 16:00:45 2013 +0000
@@ -0,0 +1,10 @@
+#      $NetBSD: Makefile.inc,v 1.1 2013/11/22 16:00:45 christos Exp $
+
+.include <bsd.own.mk>
+
+DIST= ${NETBSDSRCDIR}/external/bsd/nvi/dist
+.PATH: ${DIST}
+BINDIR=/usr/bin
+
+CWARNFLAGS.clang+=     -Wno-error=unused-const-variable
+VERSION=1.81.6-2013-11-20
diff -r 21137ff8ea46 -r d33e04233091 external/bsd/nvi/catalog/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/nvi/catalog/Makefile Fri Nov 22 16:00:45 2013 +0000
@@ -0,0 +1,103 @@
+#      $NetBSD: Makefile,v 1.1 2013/11/22 16:00:45 christos Exp $
+#
+#      @(#)Makefile    8.29 (Berkeley) 10/19/96
+
+NOMAN=         # defined
+
+.include "../Makefile.inc"
+
+.PATH: ${DIST}/catalog
+
+CATALOG=       dutch english french german ru_RU.KOI8-R ru_SU.KOI8-R \
+               spanish swedish
+
+VI_FILES=      ${DIST}/cl/*.c ${DIST}/common/*.c \
+               ${DIST}/ex/*.c ${DIST}/vi/*.c
+FILES=         ${CATALOG}
+FILESDIR=      /usr/share/nvi/catalog
+
+HOSTPROG=      dump
+SRCS=          dump.c
+
+CLEANFILES+=   ${CATALOG} english.base *.check __ck1 __ck2
+
+realall: ${CATALOG}
+
+${CATALOG}: ${CATALOG:S/$/.base/}
+       @echo "... $@";                                                 \
+       rm -f $@;                                                       \
+       if test -f $@.base; then                                        \
+               f=$@.base;                                              \
+       else                                                            \
+               f=${DIST}/catalog/$@.base;                              \
+       fi;                                                             \
+       sort -u $$f |                                                   \
+       ${TOOL_AWK} '{                                                  \
+               if ($$1 == 1) {                                         \
+                       print "\nMESSAGE NUMBER 1 IS NOT LEGAL";        \
+                       exit 1;                                         \
+               }                                                       \
+               if (++nline > $$1) {                                    \
+                       print "DUPLICATE MESSAGE NUMBER " $$1;          \
+                       exit 1;                                         \
+               }                                                       \
+               for (; nline < $$1; ++nline)                            \
+                       print "";                                       \
+               print $0;                                               \
+       }' |                                                            \
+       ${TOOL_SED} -e '1s/^/VI_MESSAGE_CATALOG/'                       \
+           -e '/"/s/^[^"]*"//'                                         \
+           -e '1!s/"$$/X/' > $@;                                       \
+       if grep DUPLICATE $@ > /dev/null; then                          \
+               grep DUPLICATE $@;                                      \
+       fi;                                                             \
+       if grep 'NOT LEGAL' $@ > /dev/null; then                        \
+               grep 'NOT LEGAL' $@;                                    \
+       fi
+
+CHK=   dutch.check english.check french.check german.check \
+       ru_RU.KOI8-R.check spanish.check swedish.check
+check: ${CHK}
+${CHK}: ${CATALOG}
+       @echo "... $@";                                                 \
+       f=${DIST}/catalog/`basename $@ .check`;                         \
+       (echo "Unused message id's (this is okay):";                    \
+       ${TOOL_AWK} '{                                                  \
+               while (++nline < $$1)                                   \
+                       printf "%03d\n", nline;                         \
+       }' < ${DIST}/catalog/$$f.base;                                  \
+       echo =========================;                                 \
+       echo "MISSING ERROR MESSAGES (Please add!):";                   \
+       ${TOOL_AWK} '{print $$1}' < $$f.base | sort -u > __ck1;         \
+       ${TOOL_AWK} '{print $$1}' < english.base | sort -u > __ck2;     \
+       comm -13 __ck1 __ck2;                                           \
+       echo =========================;                                 \
+       echo "Extra error messages (just delete them):";                \
+       comm -23 __ck1 __ck2;                                           \
+       echo =========================;                                 \
+       echo "MESSAGES WITH THE SAME MESSAGE ID's (FIX!):";             \
+       for j in                                                        \
+           `${TOOL_SED} '/^$$/d' < $$f.base | sort -u |                \
+           ${TOOL_AWK} '{print $$1}' | uniq -d`; do                    \
+               egrep $$j $$f.base;                                     \
+       done;                                                           \
+       echo =========================;                                 \
+       echo "Duplicate messages, both id and message (this is okay):"; \
+       ${TOOL_SED} '/^$$/d' < $$f.base | sort | uniq -c |              \
+       ${TOOL_AWK} '$$1 != 1 { print $$0 }' | sort -n;                 \
+       echo =========================;                                 \
+       echo "Duplicate messages, just message (this is okay):";        \
+       ${TOOL_SED} '/^$$/d' < $$f | sort | uniq -c |                   \
+       ${TOOL_AWK} '$$1 != 1 { print $$0 }' | sort -n;                 \
+       echo =========================) > $@
+
+english.base: dump ${VI_FILES} #Makefile
+       ${_MKTARGET_CREATE}
+       ./dump ${VI_FILES} |\
+       ${TOOL_SED} -e '/|/!d' \
+           -e 's/|/ "/' \
+           -e 's/^"//' \
+           -e 's/\\"/"/g' |\
+       sort -n > $@
+
+.include <bsd.hostprog.mk>
diff -r 21137ff8ea46 -r d33e04233091 external/bsd/nvi/docs/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/nvi/docs/Makefile    Fri Nov 22 16:00:45 2013 +0000
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile,v 1.1 2013/11/22 16:00:45 christos Exp $
+
+SUBDIR= USD.doc info
+
+.include <bsd.subdir.mk>
diff -r 21137ff8ea46 -r d33e04233091 external/bsd/nvi/docs/USD.doc/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/nvi/docs/USD.doc/Makefile    Fri Nov 22 16:00:45 2013 +0000
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile,v 1.1 2013/11/22 16:00:45 christos Exp $
+
+SUBDIR= edit exref vi.ref vitut
+
+.include <bsd.subdir.mk>
diff -r 21137ff8ea46 -r d33e04233091 external/bsd/nvi/docs/USD.doc/edit/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/nvi/docs/USD.doc/edit/Makefile       Fri Nov 22 16:00:45 2013 +0000
@@ -0,0 +1,24 @@
+#      $NetBSD: Makefile,v 1.1 2013/11/22 16:00:45 christos Exp $
+#
+#      @(#)Makefile    8.1 (Berkeley) 6/8/93
+
+.include "../../../Makefile.inc"
+.PATH: ${DIST}/docs/edit
+DIR=   usd/11.edit
+SRCS=  edittut.ms
+MACROS=        -ms
+
+all: paper.ps
+
+paper.ps: ${SRCS}
+       ${TOOL_TBL} ${.ALLSRC} | ${TOOL_ROFF_PS} ${MACROS} > ${.TARGET}
+
+# index for versatec is different from the one in edit.tut
+# because the fonts are different and entries reference page
+# rather than section numbers.  if you have a typesetter
+# you should just use the index in edit.tut, and ignore editvindex.
+
+editvindex:
+       ${TOOL_ROFF_RAW} ${MACROS} -n22 edit.vindex
+
+.include <bsd.doc.mk>
diff -r 21137ff8ea46 -r d33e04233091 external/bsd/nvi/docs/USD.doc/edit/edit.vindex
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/nvi/docs/USD.doc/edit/edit.vindex    Fri Nov 22 16:00:45 2013 +0000
@@ -0,0 +1,113 @@
+.\"    $NetBSD: edit.vindex,v 1.1 2013/11/22 16:00:45 christos Exp $
+.\"
+.\" Copyright (c) 1980, 1993
+.\"    The Regents of the University of California.  All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in the
+.\"    documentation and/or other materials provided with the distribution.
+.\" 3. Neither the name of the University nor the names of its contributors
+.\"    may be used to endorse or promote products derived from this software
+.\"    without specific prior written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.\"    @(#)edit.vindex 8.1 (Berkeley) 6/8/93
+.\"
+.bd I
+.ND
+.TL
+Index
+.sp 3
+.2C
+.nf
+addressing, \fIsee\fR line numbers
+append mode, 4
+backslash (\\), 18
+buffer, 2
+command mode, 4
+context search, 8, 10, 13, 18
+control characters (``^'' notation), 8
+control-d, 6
+current filename, 19, 20
+current line (.), 9, 15
+diagnostic messages, 4
+disk, 2
+documentation, 21
+edit (to begin editing session), 3, 7
+editing commands:
+.in +2
+append (a), 4, 7
+change (c), 16
+copy (co), 13
+delete (d), 13-14
+edit (e), 12
+file (f), 19
+global (g), 18-19
+move (m), 12-13
+number (nu), 9
+preserve (pre), 20-21
+print (p), 8
+quit (q), 5, 11
+quit! (q!), 11
+read (r), 20
+recover (rec), 20
+substitute (s), 9-10, 17, 18
+undo (u), 14, 17
+write (w), 5-6, 11, 19-20
+z, 11
+.sp 10i
+! (shell escape), 19
+$= , 15
++, 15
+\-, 15
+//, 8, 18
+??, 18
+\&\fB.\fR, 9, 15
+\&\fB.\fR=, 9, 15
+.in -2
+erasing
+.ti +2
+characters (#), 8
+.ti +2
+lines (@), 8
+ex (text editor), 21
+\fIEx Reference Manual\fR, 21
+file, 1
+file recovery, 20
+filename, 2
+Interrupt (message), 7
+line numbers, \fIsee also\fR current line
+.ti +2
+dollar sign ($), 8, 12-13, 15
+.ti +2
+dot (.), 9, 15
+.ti +2
+relative (+ and \-), 15, 16
+logging out, 6
+login procedure, 2
+``magic'' characters, 21
+non-printing characters, 8
+``not found'' (message), 3
+program, 1
+recovery \fIsee\fR file recovery



Home | Main Index | Thread Index | Old Index