summaryrefslogtreecommitdiffstats
path: root/usr.bin/vi
diff options
context:
space:
mode:
authorsef <sef@FreeBSD.org>1994-08-18 00:56:19 +0000
committersef <sef@FreeBSD.org>1994-08-18 00:56:19 +0000
commit141be0fea49afc4acba8396567c46cbbc9af41dc (patch)
treebdad645d92d6edbf2941f8b898e5b30e18152ab1 /usr.bin/vi
parent4111892444f68089ed7ff738a540573d272a700d (diff)
downloadFreeBSD-src-141be0fea49afc4acba8396567c46cbbc9af41dc.zip
FreeBSD-src-141be0fea49afc4acba8396567c46cbbc9af41dc.tar.gz
Incorporating nvi 1.34. Keith needs to get away from the keyboard.
Reviewed by: Sean Eric Fagan
Diffstat (limited to 'usr.bin/vi')
-rw-r--r--usr.bin/vi/README4
-rw-r--r--usr.bin/vi/common/Makefile36
2 files changed, 25 insertions, 15 deletions
diff --git a/usr.bin/vi/README b/usr.bin/vi/README
index 4af7691..0fe3a12 100644
--- a/usr.bin/vi/README
+++ b/usr.bin/vi/README
@@ -1,6 +1,6 @@
-# @(#)README 8.85 (Berkeley) 8/17/94
+# @(#)README 8.86 (Berkeley) 8/17/94
-This is the README for version 1.33 of nex/nvi, a freely redistributable
+This is the README for version 1.34 of nex/nvi, a freely redistributable
replacement for the Berkeley ex and vi text editors. The compressed or
gzip'd archives for this and future versions, can be retrieved by using
anonymous ftp to ftp.cs.berkeley.edu, from the file ucb/4bsd/nvi.tar.Z,
diff --git a/usr.bin/vi/common/Makefile b/usr.bin/vi/common/Makefile
index dcd3dab..72bc22f 100644
--- a/usr.bin/vi/common/Makefile
+++ b/usr.bin/vi/common/Makefile
@@ -1,13 +1,24 @@
-# @(#)Makefile 8.47 (Berkeley) 8/14/94
+# @(#)Makefile 8.51 (Berkeley) 8/17/94
+VI= nvi
+EX= nex
+VIEW= nview
PROG= nvi
+LINKS= ${BINDIR}/${VI} ${BINDIR}/${EX} ${BINDIR}/${VI} ${BINDIR}/${VIEW}
+
#CFLAGS=-g -DDEBUG
#CFLAGS+=-pg
CFLAGS+=-I. -I${.CURDIR}
-#STRIP=
+#LDADD+=-pg
+DPADD+= ${LIBCURSES} ${LIBTERM} ${LIBUTIL}
+LDADD+= -lcurses -ltermlib -lutil
+
.PATH: ${.CURDIR}/../common ${.CURDIR}/../ex ${.CURDIR}/../sex \
${.CURDIR}/../vi ${.CURDIR}/../svi ${.CURDIR}/../xaw
-CLEANFILES+=nex
+
+SPECHDR=compat.h excmd.h options.h
+
+CLEANFILES+=${SPECHDR} ${EX} vi.1
# General sources.
SRCS= cut.c delete.c exf.c line.c log.c main.c mark.c msg.c options.c \
@@ -43,23 +54,25 @@ SRCS+= svi_confirm.c svi_curses.c svi_ex.c svi_get.c svi_line.c \
# Athena widget set screen source.
SRCS+= xaw_screen.c
-#LDADD+=-pg
-DPADD+= ${LIBCURSES} ${LIBTERM} ${LIBUTIL}
-LDADD+= -lcurses -ltermlib -lutil
-SPECHDR=compat.h excmd.h options.h
-CLEANFILES+=${SPECHDR}
-LINKS= ${BINDIR}/nvi ${BINDIR}/nex ${BINDIR}/vi ${BINDIR}/ex ${BINDIR}/view
+all: ${VI} ${EX} vi.1
all: nvi nex vi.1
nex: nvi
rm -f nex
ln nvi nex
-nvi: compat.h options.h excmd.h
+${EX}: ${VI}
+ rm -f ${EX}
+ ln ${VI} ${EX}
compat.h:
:> compat.h
+excmd.h: excmd.h.stub excmd.c excmd.awk
+ rm -f excmd.h
+ cat ${.CURDIR}/../ex/excmd.h.stub > excmd.h
+ awk -f ${.CURDIR}/../ex/excmd.awk ${.CURDIR}/../ex/excmd.c >> excmd.h
+
options.h: options.h.stub options.c options.awk
rm -f options.h
cat ${.CURDIR}/options.h.stub > options.h
@@ -90,9 +103,6 @@ warn:: ${SRCS}
-e "/warning: comparison is always 1 due /d") > \
${.CURDIR}/WARN.OUT
-MAN= ${.CURDIR}/../USD.doc/vi.man
-REF= ${.CURDIR}/../USD.doc/vi.ref
-
.include "../../Makefile.inc"
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud