Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!newsfeed.internetmci.com!news.kddnet.ad.jp!newssvt02.tk!newssv2-pcvan!news
From: MSM76750@pcvan.or.jp
Newsgroups: fj.os.minix,comp.os.minix
Subject: [FAKE] diff for texinfo-3.7, under Minix-2.0.0
Date: 18 Oct 1996 02:10:53 GMT
Organization: PC-VAN, japan
Lines: 250
Message-ID: <961018112246.12240@pcvan.or.jp>
NNTP-Posting-Host: newssv1.pcvan.or.jp
X-Newsreader: PC-VAN INETNEWS Ver 1.13

Of cource, UnOffitial. (Tab expanded).

cd /bin; mv sh sh.old; ln /usr/bin/ash /bin/sh

In the directory texinfo-3.7, apply this patch.
patch -p1 --ignore-whitespace < ThisFile

CC=cc; export CC; ash configure

vi Makefile
        delete '-DHAVE_STRCASECMP=1' in DEFS.
        add '-O -i -m -w' to CFLAGS, instead of '-g'
        add '-s' to INSTALL_PROGRAM
vi info/Makefile
        delete '-DHAVE_STRCASECMP=1' in DEFS.
vi */Makefile
        add ...

Then, g?make

        by S.Kimura MSM76750@pcvan.or.jp


diff -uNr texinfo-3.7/Makefile.in texinfo-3.7m/Makefile.in
--- texinfo-3.7/Makefile.in     Sat Dec 23 21:39:00 1995
+++ texinfo-3.7m/Makefile.in    Thu Oct 17 22:26:39 1996
@@ -65,7 +65,8 @@
 DISTNAME = texinfo-$(VERSION)
 
 # Subdirectories that have makefiles
-SUBDIRS = libtxi makeinfo info util emacs
+#SUBDIRS = libtxi makeinfo info util emacs
+SUBDIRS = libtxi makeinfo info util
 
 # All subdirectories that go into a distribution
 ALL_SUBDIRS = $(SUBDIRS) makeinfo/macros
diff -uNr texinfo-3.7/info/clib.c texinfo-3.7m/info/clib.c
--- texinfo-3.7/info/clib.c     Tue Jun 20 11:00:35 1995
+++ texinfo-3.7m/info/clib.c    Thu Oct 17 21:06:43 1996
@@ -22,6 +22,9 @@
    Written by Brian Fox (bfox@ai.mit.edu). */
 
 #include <stdio.h>
+#ifdef __minix
+#include <sys/types.h>
+#endif /* __minix */
 
 #if defined (HAVE_UNISTD_H)
 #include <unistd.h>
@@ -35,7 +38,11 @@
 #include <string.h>
 #endif
 
+#ifdef __minix
+#include <errno.h>
+#else
 #include <sys/errno.h>
+#endif /* __minix */
 
 extern void *xmalloc (), *xrealloc ();
 #include "general.h"
diff -uNr texinfo-3.7/info/dir.c texinfo-3.7m/info/dir.c
--- texinfo-3.7/info/dir.c      Fri Jun 16 19:59:20 1995
+++ texinfo-3.7m/info/dir.c     Thu Oct 17 21:04:24 1996
@@ -27,7 +27,11 @@
 #if defined (HAVE_SYS_FILE_H)
 #include <sys/file.h>
 #endif /* HAVE_SYS_FILE_H */
+#ifdef __minix
+#include <errno.h>
+#else
 #include <sys/errno.h>
+#endif /* __minix */
 #include "info-utils.h"
 #include "filesys.h"
 #include "tilde.h"
diff -uNr texinfo-3.7/info/filesys.c texinfo-3.7m/info/filesys.c
--- texinfo-3.7/info/filesys.c  Fri Jun 16 19:59:40 1995
+++ texinfo-3.7m/info/filesys.c Thu Oct 17 21:08:17 1996
@@ -27,7 +27,11 @@
 #if defined (HAVE_SYS_FILE_H)
 #include <sys/file.h>
 #endif /* HAVE_SYS_FILE_H */
+#ifdef __minix
+#include <errno.h>
+#else
 #include <sys/errno.h>
+#endif /* __minix */
 #include "general.h"
 #include "tilde.h"
 #include "filesys.h"
diff -uNr texinfo-3.7/info/infomap.c texinfo-3.7m/info/infomap.c
--- texinfo-3.7/info/infomap.c  Fri Jun 16 20:00:19 1995
+++ texinfo-3.7m/info/infomap.c Thu Oct 17 21:09:54 1996
@@ -21,6 +21,10 @@
 
    Written by Brian Fox (bfox@ai.mit.edu). */
 
+#ifdef __minix
+#include <sys/types.h>
+#endif /* __minix */
+
 #include "stdio.h"
 #include "ctype.h"
 #include "infomap.h"
diff -uNr texinfo-3.7/info/man.c texinfo-3.7m/info/man.c
--- texinfo-3.7/info/man.c      Sat Dec 23 22:23:41 1995
+++ texinfo-3.7m/info/man.c     Thu Oct 17 22:07:51 1996
@@ -23,7 +23,9 @@
 
 #include "info.h"
 #include <sys/ioctl.h>
+#if !defined(__minix)
 #include <sys/file.h>
+#endif /* !__minix */
 #include "signals.h"
 #if defined (HAVE_SYS_TIME_H)
 #include <sys/time.h>
@@ -362,6 +364,14 @@
   return (node);
 }
 
+#if defined(__minix)   /* FAKE */
+static char *
+read_from_fd (fd)
+     int fd;
+{
+       /* DO Nothing */
+}
+#else
 static char *
 read_from_fd (fd)
      int fd;
@@ -427,6 +437,7 @@
 
   return (buffer);
 }
+#endif /* __minix */
 
 static char *reference_section_starters[] =
 {
diff -uNr texinfo-3.7/info/nodes.c texinfo-3.7m/info/nodes.c
--- texinfo-3.7/info/nodes.c    Fri Jun 16 20:00:40 1995
+++ texinfo-3.7m/info/nodes.c   Thu Oct 17 21:11:19 1996
@@ -27,7 +27,11 @@
 #if defined (HAVE_SYS_FILE_H)
 #include <sys/file.h>
 #endif /* HAVE_SYS_FILE_H */
+#ifdef __minix
+#include <errno.h>
+#else
 #include <sys/errno.h>
+#endif /* __minix */
 #include <sys/stat.h>
 #if defined (HAVE_STRING_H)
 #include <string.h>
diff -uNr texinfo-3.7/info/termdep.h texinfo-3.7m/info/termdep.h
--- texinfo-3.7/info/termdep.h  Fri Jun 16 20:02:29 1995
+++ texinfo-3.7m/info/termdep.h Thu Oct 17 21:16:25 1996
@@ -1,4 +1,4 @@
-/* termdep.h -- System things that terminal.c depends on. */
+#/* termdep.h -- System things that terminal.c depends on. */
 
 /* This file is part of GNU Info, a program for reading online documentation
    stored in Info format.
@@ -47,7 +47,11 @@
 #    include <sys/file.h>
 #  endif /* HAVE_SYS_FILE_H */
 #  include <sgtty.h>
-#  include <strings.h>
+#    if defined(HAVE_STRING_H)
+#      include <string.h>
+#    else
+#      include <strings.h>
+#    endif /* HAVE_STRING_H */
 #endif /* !HAVE_TERMIO_H */
 
 #if defined (HAVE_SYS_TTOLD_H)
diff -uNr texinfo-3.7/info/terminal.c texinfo-3.7m/info/terminal.c
--- texinfo-3.7/info/terminal.c Fri Jun 16 20:01:01 1995
+++ texinfo-3.7m/info/terminal.c        Thu Oct 17 21:22:52 1996
@@ -701,7 +701,11 @@
 
   ttybuff.sg_flags &= ~ECHO;
   ttybuff.sg_flags |= CBREAK;
+#ifdef __minix
+  ioctl (tty, TIOCSETP, &ttybuff);
+#else
   ioctl (tty, TIOCSETN, &ttybuff);
+#endif /* __minix */
 #endif /* !HAVE_TERMIO_H */
 }
 
@@ -725,7 +729,11 @@
 #else /* !HAVE_TERMIO_H */
   ioctl (tty, TIOCGETP, &ttybuff);
   ttybuff.sg_flags = original_tty_flags;
+#ifdef __minix
+  ioctl (tty, TIOCSETP, &ttybuff);
+#else
   ioctl (tty, TIOCSETN, &ttybuff);
+#endif /* __minix */
 
 #if defined (TIOCGETC)
   ioctl (tty, TIOCSETC, &original_tchars);
@@ -742,4 +750,3 @@
 #endif /* !HAVE_TERMIO_H */
   terminal_end_using_terminal ();
 }
-
diff -uNr texinfo-3.7/info/tilde.c texinfo-3.7m/info/tilde.c
--- texinfo-3.7/info/tilde.c    Mon Jun 19 22:13:00 1995
+++ texinfo-3.7m/info/tilde.c   Thu Oct 17 21:24:32 1996
@@ -41,6 +41,10 @@
 #include <stdlib.h>
 #endif
 
+#if defined(__minix)
+#include <sys/types.h>
+#endif /* __minix */
+
 #include "tilde.h"
 #include <pwd.h>
 
diff -uNr texinfo-3.7/makeinfo/Makefile.in texinfo-3.7m/makeinfo/Makefile.in
--- texinfo-3.7/makeinfo/Makefile.in    Sat Dec 23 21:34:50 1995
+++ texinfo-3.7m/makeinfo/Makefile.in   Thu Oct 17 22:56:55 1996
@@ -69,6 +69,7 @@
 
 makeinfo: $(OBJS) ../libtxi/libtxi.a
        $(CC) $(LDFLAGS) -o makeinfo $(OBJS) $(LOADLIBES)
+       chmem =1600000 makeinfo
 
 ../libtxi/libtxi.a:
        (cd ../libtxi; $(MAKE) $(MFLAGS) libtxi.a)
diff -uNr texinfo-3.7/util/texindex.c texinfo-3.7m/util/texindex.c
--- texinfo-3.7/util/texindex.c Fri Jun 16 20:14:37 1995
+++ texinfo-3.7m/util/texindex.c        Thu Oct 17 22:09:13 1996
@@ -22,6 +22,9 @@
 #include <stdio.h>
 #include <ctype.h>
 #include <errno.h>
+#if defined(__minix)
+#include <sys/types.h>
+#endif /* __minix */
 #include "getopt.h"
 
 #define TEXINDEX_VERSION_STRING "GNU Texindex 2.0 for Texinfo release 3.4"
[EOP]
(B
