]> Zhao Yanbai Git Server - minix.git/commitdiff
Imported partly very pretty, partly very messy port of nvi.
authorBen Gras <ben@minix3.org>
Tue, 6 Sep 2005 17:35:41 +0000 (17:35 +0000)
committerBen Gras <ben@minix3.org>
Tue, 6 Sep 2005 17:35:41 +0000 (17:35 +0000)
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.

contrib/Makefile
contrib/bsd/Makefile [new file with mode: 0755]

index 961a3f795cf6d134dbf6c05b25f312aa681c3774..6f8b26549bce9430545d73bb9893b04ae78883ea 100755 (executable)
@@ -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 (executable)
index 0000000..a85f021
--- /dev/null
@@ -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
+