Path: galaxy.trc.rwcp.or.jp!coconuts.jaist!wnoc-tyo-news!tokyonet.ad.jp!wincgw1!senri-nc!odins-suita!aist-nara!yasufu-i
From: yasufu-i@is.aist-nara.ac.jp (ITOH Yasufumi)
Newsgroups: fj.comp.texhax,fj.sys.x68000
Subject: Re: [Want] dvi2ps (X680x0$BHG(B)
Date: 18 Feb 1996 11:52:59 GMT
Organization: Nara Institute of Science and Technology
Lines: 267
Message-ID: <4g73ur$mtk@fse3.aist-nara.ac.jp>
References: <DMppo8.Dp5@spn.ie.u-ryukyu.ac.jp>
NNTP-Posting-Host: alpha424.aist-nara.ac.jp
X-Newsreader: mnews [version 1.19] 1995-07/21(Fri)
Xref: galaxy.trc.rwcp.or.jp fj.comp.texhax:7516 fj.sys.x68000:3071
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.comp.texhax&nb=7516&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

  $B0KF#$H?=$7$^$9!#(B

<DMppo8.Dp5@spn.ie.u-ryukyu.ac.jp>$B$N5-;v$K$*$$$F(B
odo@sw081.ie.u-ryukyu.ac.jp$B$5$s$O=q$-$^$7$?!#(B

>  TeX$B$,=PNO$7$?(B dvi$B7A<0$N%U%!%$%k$r(B PostScript$B7A<0$K(B
> $BJQ49$9$k(B dvi2ps$B$N(BX680x0$BHG$rC5$7$F$$$^$9!#(B

dvi2ps $B$O!"%G%U%)%k%H$N2rA|EY$J$I$,%3%s%Q%$%k;~$K7h$^$C$F(B
$B$7$^$$$^$9$N$G!"$4<+J,$N4D6-$K9g$o$;$F%3%s%Q%$%k$7$?J}$,(B
$B9,$;$K$J$l$k$H;W$$$^$9!#(B

$B$H$$$&$o$1$G!"0JA0(B dvi2ps-1.91j $B$r%3%s%Q%$%k$7$?$H$-$N(B
$B%Q%C%A$rEj9F$7$^$9!#(B
# patch.x $B$O(B ftp $B%5%$%H$K$"$C$?$O$:(B :-)$B!#(B

$B$3$N%Q%C%A$O;d$N4D6-$N$b$N$G$9$N$G!"(B
$B$5$i$K=q$-49$($,I,MW$+$H;W$$$^$9$,!"$=$l$K$D$$$F$O(B
$B%*%j%8%J%k$N%I%-%e%a%s%H$r;2>H$7$F$/$@$5$$!#(B

$B%Q%C%A$OFs$D$KJ,$+$l$F$$$^$9!#(B
$B$J$*!"$3$N%Q%C%A$K$D$$$F!";d$OCx:n8"$r<gD%$7$^$;$s!#(B
--
$BF`NI@hC<2J3X5;=QBg3X1!Bg3X(B $B>pJs2J3X8&5f2J(B $B8@8l@_7W3X9V:B(B($BEOn58&(B) M2
yasufu-i@is.aist-nara.ac.jp$B0KF#(B $B9/;K(B

$B$R$H$D$a(B: dvi2ps191j.dif

BEGIN--cut here--cut here
X680x0 (Human68k) $BMQ$N(B dvi2ps-1.91j $B$N%Q%C%A$G$9!#(B
$B%3%s%Q%$%k$K$O(B libc $B$,I,MW$G$9!#$3$NB>$K$b!"(B
gcc, GNU make, sed, sh(ksh), cp $B$J$I$,I,MW$G$9!#(B
dvi2ps-1.91j $B$rE83+$7$F$=$N%G%#%l%/%H%j$K0\$j!"(B

patch -p1 < dvi2ps191j.dif

$B$N$h$&$K$7$FEv$F$^$9!#(B
Makefile $B$OE,Ev$K=q$-49$($F$/$@$5$$!#(B

dvi2ps $B$N%U%!%$%k$K$O(B - $B$r4^$`$b$N$,$"$j$^$9$N$G!"(B
$B:,@-$G=q$-49$($k$J$j!"(BTwentyOne.x $B$r>oCs$5$;$k$J$j!"(B
Human V2.03 $B0J>e$r;H$&$J$j$7$^$7$g$&!#(B

diff -ru dvi2ps-19j.org/Makefile dvi2ps-1.9j/Makefile
--- dvi2ps-19j.org/MakefileSun Jun 25 16:28:16 1995
+++ dvi2ps-1.9j/MakefileMon Jul 17 23:00:48 1995
@@ -2,10 +2,10 @@
 # your site:
 #
 # where dvi2ps is installed
-BINAREA=/usr/local/bin
+BINAREA=a:/usr/bin
 #
 # directory for dvi2ps: where the auxiliary files are installed
-DVI2LIB=/usr/local/lib/dvi2ps
+DVI2LIB=a:/usr/lib/dvi2ps
 #
 # name of default fontdesc file in your site
 FONTDESC=fontdesc
@@ -34,9 +34,9 @@
 LEFTMARGIN=72
 
 #
-CC=cc
+CC=gcc
 #
-CFLAGS = -O
+CFLAGS = -O -fstrength-reduce -fcombine-regs -fforce-addr -fforce-mem -fomit-frame-pointer
 #CFLAGS = -O# SUN etc ...
 #CFLAGS = -O -traditional -DPOSIX# 386bsd (gcc 1.X)
 #CFLAGS = -O -DPOSIX# NetBSD (gcc 2.X), Linux
@@ -75,10 +75,10 @@
 version.o
 PSOBJS = ps.o psspecial.o psrast.o psjxl4.o psbi.o psio.o
 
-all: dvi2ps lib/dvi2.ps
+all: dvi2ps.x lib/dvi2.ps
 
-dvi2ps: ${DVI2OBJS} ${PSOBJS}
-${CC} -o $@ ${DVI2OBJS} ${PSOBJS} -lm
+dvi2ps.x: ${DVI2OBJS} ${PSOBJS}
+${CC} -o $@ ${DVI2OBJS} ${PSOBJS} -lsignal
 dvi2.o: Makefile
 ${CC} ${CNFCFLAGS} -c dvi2.c
 ps.o: Makefile
@@ -89,8 +89,8 @@
 
 install: install-dvi2ps install-header
 
-install-dvi2ps: dvi2ps
-install -c -s -m 755 dvi2ps ${BINAREA}/dvi2ps
+install-dvi2ps: dvi2ps.x
+cp -p dvi2ps.x ${BINAREA}/dvi2ps.x
 
 install-header: lib/dvi2.ps
 -mkdir ${DVI2LIB}
@@ -102,9 +102,10 @@
 cp -pr lib/* ${DVI2LIB}
 chmod -R a+r ${DVI2LIB}
 
-lib/dvi2.ps: dvi2.psdoc
+# dvi2.psdoc -> dvi2.psd
+lib/dvi2.ps: dvi2.psd
 -mkdir lib
-./tools/psstrip < dvi2.psdoc | \
+./tools/psstrip < dvi2.psd | \
 sed -e s/'##XCOORD##'/${LEFTMARGIN}/ -e s/'##YCOORD##'/${TOPMARGIN}/ \
 > lib/dvi2.ps
 
@@ -117,7 +118,7 @@
 chmod 755 ${BINAREA}/lprdvi
 
 clean:
-rm -f dvi2ps *.o *.orig core
+rm -f dvi2ps.x *.o *.orig core
 
 lint:
 lint *.c
diff -ru dvi2ps-19j.org/defs.h dvi2ps-1.9j/defs.h
--- dvi2ps-19j.org/defs.hSun Jun 25 16:28:16 1995
+++ dvi2ps-1.9j/defs.hMon Jul 17 22:24:10 1995
@@ -7,6 +7,10 @@
 #include<ctype.h>
 
 /* R_OK, F_OK */
+#ifdef __human68k__
+#include<unistd.h>
+#include<fcntl.h>/* for O_BINARY */
+#else
 #ifndef POSIX
 #ifdef SYSV
 #include<sys/types.h>
@@ -16,6 +20,7 @@
 #else
 #include<unistd.h>
 #endif
+#endif
 
 #ifdef SYSV
 #include<string.h>
@@ -26,6 +31,9 @@
 #include<strings.h>
 #endif
 
+#ifdef __human68k__
+#include <stdlib.h>
+#else
 #ifndef POSIX
 char *malloc();
 char *realloc();
@@ -42,6 +50,7 @@
 char *mktemp();
 char *getenv();
 void exit();
+#endif
 
 #define DEBUG/* for massive printing of input */
 /* trace information; select by -d */
@@ -54,7 +63,7 @@
 #defineDebuguser(debug>=DEBUGuser)
 #defineDebug(debug>=DEBUGsys)
 
-#ifdef MSDOS
+#if defined(MSDOS) || defined(__human68k__)
 #define BINARYOPEN(f)fopen(f,"rb")/* byte-oriented host version */
 #define BINARYWOPEN(f)fopen(f,"w+b")
 /*#defineDIR_SEP'\\'*/
diff -ru dvi2ps-19j.org/fontdesc.c dvi2ps-1.9j/fontdesc.c
--- dvi2ps-19j.org/fontdesc.cSun Jun 25 16:28:48 1995
+++ dvi2ps-1.9j/fontdesc.cMon Jul 17 22:09:40 1995
@@ -122,7 +122,7 @@
 (void)strcat(newf, f+2);
 goto find;
     } else if (*f == '/'
-#ifdef MSDOS
+#if defined(MSDOS) || defined(__human68k__)
        || (isalpha(*f) && *(f+1) == ':')
 #endif
        ) {
diff -ru dvi2ps-19j.org/psio.c dvi2ps-1.9j/psio.c
--- dvi2ps-19j.org/psio.cSun Jun 25 16:28:18 1995
+++ dvi2ps-1.9j/psio.cMon Jul 17 22:10:38 1995
@@ -182,6 +182,10 @@
     FILE *spfp;
     int t, pt;
     
+#ifdef __human68k__
+    Warning("Human68k does not have pipes");
+    return;
+#else
 #ifdef MSDOS
     Warning("MSDOS does not have pipes");
     return;
@@ -212,5 +216,6 @@
 (void)fprintf(stderr, "] ");
 (void)fflush(stderr);
     }
+#endif
 #endif
 }
diff -ru dvi2ps-19j.org/run.c dvi2ps-1.9j/run.c
--- dvi2ps-19j.org/run.cSun Jun 25 16:28:40 1995
+++ dvi2ps-1.9j/run.cMon Jul 17 22:11:20 1995
@@ -193,7 +193,7 @@
 stdindvi = TRUE;
 (void)signal(SIGHUP, sigabort);
 (void)signal(SIGINT, sigabort);
-#ifdef MSDOS
+#if defined(MSDOS) || defined(__human68k__)
 setmode(fileno(stdin), O_BINARY);
 #endif
 for (; !ferror(stdin) && (ch = getchar()) != EOF; )
END--cut here--cut here

$B$U$?$D$a(B: dvi2pslib191j.dif

BEGIN--cut here--cut here
X680x0 (Human68k) $BMQ$N(B dvi2ps-1.91j $B$N%i%$%V%i%j$N%Q%C%A$G$9!#(B
dvi2ps-1.91j $B$rE83+$7$?%G%#%l%/%H%j$K0\$j!"(B

make newlib
cd lib
patch -p2 < dvi2pslib191j.dif

$B$N$h$&$K$7$FEv$F$^$9!#(B
$B$5$i$K=q$-49$($,I,MW$+$b$7$l$^$;$s$M!#(B

diff -ruN dvi2ps-19j.org/lib-dist/fontdesc dvi2ps-1.9j/lib/fontdesc
--- dvi2ps-19j.org/lib-dist/fontdescThu Jan 01 09:00:00 1970
+++ dvi2ps-1.9j/lib/fontdescMon Jul 17 22:44:32 1995
@@ -0,0 +1,10 @@
+# default dvi2ps font description file.
+#
+# header
+includedvi2.ps
+# ascii font
+fontdescfonts/efontdef
+# kanji font
+#fontdescfonts/jfontdef
+#fontdescfonts/ntt-bikanji
+fontdescfonts/asc-bikanji
diff -ruN dvi2ps-19j.org/lib-dist/fonts/asc-bk dvi2ps-1.9j/lib/fonts/asc-bk
--- dvi2ps-19j.org/lib-dist/fonts/asc-bkSun Jun 25 16:27:14 1995
+++ dvi2ps-1.9j/lib/fonts/asc-bkMon Jul 17 22:49:02 1995
@@ -1,6 +1,6 @@
 # built-in kanji
 #  jfm ASCII JTeX with min* goth*
-fontjfm*0/usr/local/lib/tex/jfonts/jfm/%f.tfm
+fontjfm*0A:/TeX/FONTS/JFONTS/%f.tfm
 include ascfix-c.ps
 builtin minJINA"/Ryumin-Light-H Ryumin-Metrics Set-New-Metrics"
 builtin gothJINA"/GothicBBB-Medium-H Gothic-Metrics Set-New-Metrics"
diff -ruN dvi2ps-19j.org/lib-dist/fonts/efontdef dvi2ps-1.9j/lib/fonts/efontdef
--- dvi2ps-19j.org/lib-dist/fonts/efontdefSun Jun 25 16:27:14 1995
+++ dvi2ps-1.9j/lib/fonts/efontdefMon Jul 17 22:55:12 1995
@@ -1,5 +1,9 @@
 #TYPESPECSUBPATH
 # Computer Modern font
-fontpk*3/usr/local/lib/tex/fonts/pk/%f.%mpk
+fontpk*3A:/TeX/PKS/PK118/%m/%f.pk
+fontpk*3A:/TeX/PKS/PK180/%m/%f.pk
+fontpk*3A:/TeX/PKS/PK240/%m/%f.pk
+fontpk*3A:/TeX/PKS/PK300/%m/%f.pk
+fontpk*3A:/TeX/PKS/PK360/%m/%f.pk
 #fontgf*3/usr/local/lib/tex/fonts/gf/%f.%mgf
 #fontpxl*3/usr/local/lib/tex/fonts/pxl/%f.%mpxl
END--cut here--cut here
