From: Ben Gras Date: Tue, 6 Sep 2005 17:35:41 +0000 (+0000) Subject: Imported partly very pretty, partly very messy port of nvi. X-Git-Tag: v3.1.0~174 X-Git-Url: http://zhaoyanbai.com/repos/nslookup.html?a=commitdiff_plain;h=de5fac2e2b0fab67b90c94ca29c42aa8612098e4;p=minix.git Imported partly very pretty, partly very messy port of nvi. Nasty situation is because of no ftruncate(), which causes awfulness trying to emulate it. No writev() and fsync() system calls are less serious, but the port will be cleaned up a great deal if and when those system calls appear. --- diff --git a/contrib/Makefile b/contrib/Makefile index 961a3f795..6f8b26549 100755 --- a/contrib/Makefile +++ b/contrib/Makefile @@ -1,3 +1,4 @@ all install clean: cd gnu && $(MAKE) $@ + cd bsd && $(MAKE) $@ diff --git a/contrib/bsd/Makefile b/contrib/bsd/Makefile new file mode 100755 index 000000000..a85f02149 --- /dev/null +++ b/contrib/bsd/Makefile @@ -0,0 +1,14 @@ + +NVI=nvi-1.79 +NVIWORK=$(NVI)/minix + +all: + -mkdir $(NVIWORK) + cd $(NVIWORK) && CFLAGS="-D_MINIX=1 -D_POSIX_SOURCE=1" ../build/configure.minix --prefix=/usr/local --host=minix && make $@ + +install: all + cd $(NVIWORK) && sh ../build/install.minix + +clean: + if [ -f $(NVIWORK)/Makefile ]; then cd $(NVIWORK) && make clean; fi +