home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1997 May / PCO_5_97.ISO / FilesBBS / OS2 / XDVI.ARJ / XDVI.ZIP / xfree86 / src / diffs / xdvi_os2.diff
Encoding:
Text File  |  1997-02-12  |  20.9 KB  |  716 lines

  1. diff -d -N -c xdvi-20/font_open.c ./font_open.c
  2. *** xdvi-20/font_open.c    Tue Apr 18 22:30:28 1995
  3. --- ./font_open.c    Wed Feb 12 00:49:58 1997
  4. ***************
  5. *** 39,44 ****
  6. --- 39,50 ----
  7.    *    If you think you have to change DEFAULT_TAIL, then you haven't read the
  8.    *    documentation closely enough.
  9.    */
  10. + #ifdef __EMX__
  11. + #define PATH_SEP ';'
  12. + #define DEFAULT_TAIL "/%ddpi/%f.%p"
  13. + #define DEFAULT_VF_TAIL "/%f.vf"
  14. + #else /* other */
  15.   #ifndef    VMS
  16.   #define    PATH_SEP    ':'
  17.   #define    DEFAULT_TAIL    "/%f.%d%p"
  18. ***************
  19. *** 48,53 ****
  20. --- 54,60 ----
  21.   #define    DEFAULT_TAIL    ":%f.%d%p"
  22.   #define    DEFAULT_VF_TAIL    ":%f.vf"
  23.   #endif    /* VMS */
  24. + #endif
  25.   
  26.   static    _Xconst char    *font_path;
  27.   static    _Xconst char    *default_font_path    = DEFAULT_FONT_PATH;
  28. ***************
  29. *** 108,114 ****
  30.   #endif
  31.   
  32.   /* Declare the routine to get the current working directory.  */
  33.   #ifdef    HAVE_GETWD
  34.   extern    char    *getwd ();
  35.   #define    GETCWD(b, len)    ((b) ? getwd (b) : getwd (xmalloc (len, "getwd")))
  36. --- 115,120 ----
  37. ***************
  38. *** 227,232 ****
  39. --- 233,239 ----
  40.       _Xconst char    *index;
  41.       char        *name;
  42.   {
  43. +     
  44.       struct subdir_entry        *new_entry;
  45.       static    struct subdir_entry    **subdir_tail = &subdir_head;
  46.   
  47. ***************
  48. *** 265,271 ****
  49. --- 272,283 ----
  50.              concatenations (and make the pathnames the kernel looks up
  51.              shorter).  */
  52.           Strcpy(temp + len, next_subdir->name);
  53. + #ifndef __EMX__
  54.           if (chdir (temp) != 0) continue;
  55. + #else
  56. +         if (_chdir2 (temp) != 0) continue;
  57. + #endif
  58.   
  59.           dir = opendir (".");
  60.           if (dir == NULL) continue;
  61. ***************
  62. *** 282,290 ****
  63. --- 294,308 ----
  64.           (void) closedir (dir);
  65.   
  66.   
  67.           /* Change back to the current directory, in case the path
  68.              contains relative directory names.  */
  69. + #ifndef __EMX__
  70.           if (chdir (cwd) != 0) {
  71. + #else
  72. +         if (_chdir2 (cwd) != 0) {
  73. + #endif
  74.           perror (cwd);
  75.   #if    PS
  76.           ps_destroy();
  77. ***************
  78. *** 359,364 ****
  79. --- 377,383 ----
  80.       if ((font_path = getenv("XDVIFONTS")) == NULL
  81.   #ifndef    XDVIFONTS_ONLY
  82.           && (font_path = getenv("PKFONTS")) == NULL
  83. +         && (font_path = getenv("DVIDRVFONTS")) == NULL
  84.           && (font_path = getenv("TEXPKS")) == NULL
  85.           && (font_path = getenv("TEXFONTS")) == NULL
  86.   #endif
  87. ***************
  88. *** 384,390 ****
  89. --- 403,415 ----
  90.          is not necessarily the same directory the user expects to be
  91.          in.  So, we must always call getcwd(3) or getwd(3), even though
  92.          they are slow and prone to hang in networked installations.  */
  93. + #ifndef __EMX__
  94.       cwd = GETCWD ((char *) NULL, FILENAMESIZE + 2);
  95. + #else
  96. +     cwd = _getcwd2 ((char *) NULL, FILENAMESIZE + 2);
  97. + #endif
  98.       if (cwd == NULL) {
  99.           perror ("getcwd");
  100.   #if    PS
  101. ***************
  102. *** 451,456 ****
  103. --- 476,486 ----
  104.       Boolean    p_used = False;
  105.       FILE    *f;
  106.   
  107. + #ifdef __EMX__
  108. +     char *double_slash;
  109. +     int i;
  110. + #endif
  111.   #ifdef    SEARCH_SUBDIRECTORIES
  112.       if (next_subdir != NULL && next_subdir->index == p) {
  113.           int len = index(p, '*') - p;
  114. ***************
  115. *** 500,509 ****
  116.           }
  117.           n += strlen(n);
  118.           }
  119. !         else *n++ = c;
  120.       }
  121.       if (!p_used && !first_try) return NULL;
  122.       *n = '\0';
  123.       if (debug & DBG_OPEN) Printf("Trying font file %s\n", nm);
  124.       f = xfopen(nm, OPEN_MODE);
  125.       if (f != NULL) {
  126. --- 530,551 ----
  127.           }
  128.           n += strlen(n);
  129.           }
  130. !         else *n++ =c;
  131.       }
  132.       if (!p_used && !first_try) return NULL;
  133.       *n = '\0';
  134. + #ifdef __EMX__
  135. + /* I inserted this here, because for some reason, xdvi searched in pathes like     */
  136. + /* f:\texfonts\\210dpi, here this is changed to f:\texfonts\210dpi                            */
  137. +     double_slash = strstr ( nm, "//" );
  138. +     if ( double_slash != NULL ) {
  139. +         for ( i = 1; i < ( strlen(double_slash) -1 ); i++ ) {
  140. +         double_slash[i] = double_slash[i+1];
  141. +         }
  142. +     }
  143. + #endif
  144.       if (debug & DBG_OPEN) Printf("Trying font file %s\n", nm);
  145.       f = xfopen(nm, OPEN_MODE);
  146.       if (f != NULL) {
  147. ***************
  148. *** 725,730 ****
  149. --- 767,773 ----
  150.                   Sprintf(q, "magstep\\(%d%s\\)", magstepval / 2,
  151.                   magstepval % 2 ? ".5" :"");
  152.               break;
  153. + //#endif
  154.               case 'o':
  155.               Strcpy(q, resource.mfmode != NULL ? resource.mfmode
  156.                   : "default");
  157. Common subdirectories: xdvi-20/gsftopk and ./gsftopk
  158. Common subdirectories: xdvi-20/gsftopk-1.11 and ./gsftopk-1.11
  159. Binary files xdvi-20/gsftopk-1.9-1.10.diff.gz and ./gsftopk-1.9-1.10.diff.gz differ
  160. diff -d -N -c xdvi-20/Imakefile ./Imakefile
  161. *** xdvi-20/Imakefile    Wed Apr 26 02:32:18 1995
  162. --- ./Imakefile    Wed Jan 29 19:19:44 1997
  163. ***************
  164. *** 4,10 ****
  165.   
  166.   XCOMM The following seven lines are the crucial ones.
  167.   OSDEFS=-DMSBITFIRST
  168. ! OPTIONDEFS=-DUSE_PK -DBUTTONS -DGREY
  169.   DEFAULT_FONT_PATH=/usr/local/tex/fonts
  170.   DEFAULT_VF_PATH=/usr/local/tex/fonts/vf
  171.   DEFAULT_FONT_SIZES=$(SIZES300)
  172. --- 4,10 ----
  173.   
  174.   XCOMM The following seven lines are the crucial ones.
  175.   OSDEFS=-DMSBITFIRST
  176. ! OPTIONDEFS=-DUSE_PK -DBUTTONS -DGREY -DMAKEPK -DSEARCH_SUBDIRECTORIES -DPS_GS -DA4
  177.   DEFAULT_FONT_PATH=/usr/local/tex/fonts
  178.   DEFAULT_VF_PATH=/usr/local/tex/fonts/vf
  179.   DEFAULT_FONT_SIZES=$(SIZES300)
  180. ***************
  181. *** 43,49 ****
  182.   SIZES400=400:438:480:576:691:829:995
  183.   SIZES600=600:657:720:864:1037:1244:1493
  184.   
  185. ! default: xdvi
  186.   
  187.   config:
  188.       ./mkconfig imake $(DEFS)
  189. --- 43,49 ----
  190.   SIZES400=400:438:480:576:691:829:995
  191.   SIZES600=600:657:720:864:1037:1244:1493
  192.   
  193. ! default: xdvi.exe
  194.   
  195.   config:
  196.       ./mkconfig imake $(DEFS)
  197. ***************
  198. *** 51,62 ****
  199.   Makefile.cfg: Imakefile mkconfig
  200.       ./mkconfig imake $(DEFS)
  201.   
  202. ! include Makefile.cfg
  203.   
  204. ! SRCS=xdvi.c events.c dvi_init.c dvi_draw.c special.c font_open.c vf.c util.c \
  205. !   $(VARSRCS)
  206. ! OBJS=xdvi.o events.o dvi_init.o dvi_draw.o special.o font_open.o vf.o util.o \
  207. !   $(VAROBJS)
  208.   
  209.   ComplexProgramTarget(xdvi)
  210.   
  211. --- 51,63 ----
  212.   Makefile.cfg: Imakefile mkconfig
  213.       ./mkconfig imake $(DEFS)
  214.   
  215. ! LOCAL_LIBRARIES=$(LOCAL_LIBRARIES_TOOL)
  216. ! DEPLIBS=$(DEPLIBS_TOOL)
  217. ! LINTLIBS=$(LINTLIBS_TOOL)
  218.   
  219. ! SRCS=xdvi.c events.c dvi_init.c dvi_draw.c special.c font_open.c vf.c util.c pk.c psgs.c psheader.c
  220. ! OBJS=xdvi.o events.o dvi_init.o dvi_draw.o special.o font_open.o vf.o util.o pk.o psgs.o psheader.c
  221.   
  222.   ComplexProgramTarget(xdvi)
  223.   
  224. ***************
  225. *** 68,74 ****
  226.   
  227.   xdvi.man: xdvi_man.sed mksedscript
  228.       chmod u+x mksedscript
  229. !     ./mksedscript "$(DEFAULT_FONT_PATH)" $(DEFAULT_FONT_SIZES) \
  230.           "$(DEFAULT_VF_PATH)" "$(DEFAULT_FIG_PATH)" \
  231.           "$(DEFAULT_HEADER_PATH)" $(DEFS) > sedscript
  232.       sed -f sedscript < xdvi_man.sed > xdvi.man
  233. --- 69,75 ----
  234.   
  235.   xdvi.man: xdvi_man.sed mksedscript
  236.       chmod u+x mksedscript
  237. !     sh ./mksedscript "$(DEFAULT_FONT_PATH)" $(DEFAULT_FONT_SIZES) \
  238.           "$(DEFAULT_VF_PATH)" "$(DEFAULT_FIG_PATH)" \
  239.           "$(DEFAULT_HEADER_PATH)" $(DEFS) > sedscript
  240.       sed -f sedscript < xdvi_man.sed > xdvi.man
  241. diff -d -N -c xdvi-20/installos2.cmd ./installos2.cmd
  242. *** xdvi-20/installos2.cmd    Thu Jan  1 00:00:00 1970
  243. --- ./installos2.cmd    Sun Feb  9 13:25:02 1997
  244. ***************
  245. *** 0 ****
  246. --- 1,12 ----
  247. + call mkdirhier %x11root%/xfree86/bin
  248. + cp xdvi.exe %x11root%/xfree86/bin
  249. + cp gsftopk-1.11/gsftopk.exe %x11root%/xfree86/bin
  250. + cp Maketexpk.cmd %x11root%/xfree86/bin
  251. + call mkdirhier %x11root%/xfree86/man/man1
  252. + cp xdvi.man %x11root%/xfree86/man/man1
  253. + cp gsftopk-1.11/gsftopk.1 %x11root%/xfree86/man/man1
  254. + call mkdirhier %emtexdir%/data/dvips
  255. + cp gsftopk-1.11/render.ps %emtexdir%/data/dvips
  256. + call mkdirhier %x11root%/doc
  257. + cp readme.os2 %x11root%/doc/xdvi.os2
  258. + cp FAQ %x11root%/doc/xdvi.FAQ
  259. diff -d -N -c xdvi-20/MAKE_VMS.COM ./MAKE_VMS.COM
  260. *** xdvi-20/MAKE_VMS.COM    Tue Apr 18 21:58:34 1995
  261. --- ./MAKE_VMS.COM    Thu Jan  1 00:00:00 1970
  262. ***************
  263. *** 1,141 ****
  264. - $! MAKE_VMS.COM
  265. - $! A DCL `Make' procedure for compiling and linking XDVI.
  266. - $!
  267. - $ ON ERROR THEN GOTO EXIT
  268. - $ ON CONTROL_Y THEN GOTO EXIT
  269. - $ OLD_VERIFY = f$verify (0)
  270. - $!
  271. - $ MAY_USE_DECC = 1
  272. - $!
  273. - $ IF F$GETSYI("HW_MODEL") .GE. 1024
  274. - $ THEN
  275. - $   ARCH_NAME="Alpha"
  276. - $   ARCH_PREF="AXP_"
  277. - $   HAVE_DECC_VAX = 0
  278. - $   USE_DECC_VAX = 0
  279. - $   CC="CC/stand=VAX/ansi/obj=.''ARCH_PREF'obj"
  280. - $   WRITE SYS$OUTPUT "Compiling on Alpha AXP using DECC"
  281. - $ ELSE
  282. - $   ARCH_NAME="VAX"
  283. - $   ARCH_PREF="VAX_"
  284. - $   IF F$TRNLNM("DECC$LIBRARY_INCLUDE") .NES. ""
  285. - $   THEN
  286. - $!    DECC for VAX available (and maybe VAXC, too!)
  287. - $     HAVE_DECC_VAX = 1
  288. - $     IF HAVE_DECC_VAX .AND. MAY_USE_DECC
  289. - $     THEN
  290. - $!      We use DECC: 
  291. - $       USE_DECC_VAX = 1
  292. - $       CC="CC/DECC/stand=VAX/obj=.''ARCH_PREF'obj"
  293. - $     ELSE
  294. - $!      We use VAXC: 
  295. - $       USE_DECC_VAX = 0
  296. - $       CC="CC/VAXC/obj=.''ARCH_PREF'obj"
  297. - $     ENDIF
  298. - $   ELSE
  299. - $!    only VAXC available
  300. - $     HAVE_DECC_VAX = 0
  301. - $     USE_DECC_VAX = 0
  302. - $     CC="CC/obj=.''ARCH_PREF'obj"
  303. - $   ENDIF
  304. - $   IF USE_DECC_VAX
  305. - $   THEN
  306. - $     WRITE SYS$OUTPUT "Compiling on VAX using DECC"
  307. - $   ELSE
  308. - $     WRITE SYS$OUTPUT "Compiling on VAX using VAXC"
  309. - $   ENDIF
  310. - $ ENDIF
  311. - $ LDFLAGS = ""
  312. - $ DEFINE X11 DECW$INCLUDE
  313. - $ IF USE_DECC_VAX .AND. (F$TRNLNM("DECC$LIBRARY_INCLUDE") .NES. "")
  314. - $  THEN
  315. - $    DEFINE SYS DECC$LIBRARY_INCLUDE
  316. - $  ELSE
  317. - $    DEFINE SYS SYS$LIBRARY
  318. - $  ENDIF
  319. - $ IF ARCH_NAME .EQS. "Alpha"
  320. - $  THEN
  321. - $    DEFINE DPS SYS$LIBRARY
  322. - $  ELSE
  323. - $    DEFINE DPS DECW$INCLUDE
  324. - $  ENDIF
  325. - $!
  326. - $ ps_dps = ""
  327. - $ ps_gs = ""
  328. - $ IF f$edit(p1,"UPCASE") .eqs. "DPS" THEN ps_dps = "PSDPS"
  329. - $ IF f$edit(p1,"UPCASE") .eqs. "GS" THEN ps_gs = "PSGS"
  330. - $!
  331. - $ ps_options = ""
  332. - $ ps_head = ""
  333. - $ varobjs = ""
  334. - $ IF ps_dps .EQS. "PSDPS"
  335. - $  THEN
  336. - $    ps_head = "PSHEADER"
  337. - $    ps_options = ps_options + ", PS_DPS"
  338. - $    varobjs = varobjs + "PSDPS.''ARCH_PREF'OBJ, "
  339. - $  ENDIF
  340. - $ IF ps_gs .EQS. "PSGS"
  341. - $  THEN
  342. - $    ps_head = "PSHEADER"
  343. - $    ps_options = ps_options + ", PS_GS"
  344. - $    varobjs = varobjs + "PSGS.''ARCH_PREF'OBJ, "
  345. - $  ENDIF
  346. - $!
  347. - $ OPEN/WRITE optfile VMS_XDVI.'ARCH_PREF'OPT
  348. - $ IF ps_dps .EQS. "PSDPS"
  349. - $ THEN
  350. - $   WRITE optfile "sys$share:xdps$dpsclientshr/share"
  351. - $   WRITE optfile "sys$share:xdps$dpsbindingsshr/share"
  352. - $   WRITE optfile "sys$share:xdps$dpslibshr/share"
  353. - $ ENDIF
  354. - $ WRITE optfile "sys$share:decw$xlibshr/share"
  355. - $ IF (ARCH_NAME .EQS. "VAX") .AND. (.NOT. USE_DECC_VAX)
  356. - $ THEN
  357. - $   WRITE optfile "sys$share:vaxcrtl/share"
  358. - $   option_file = "VMS_XDVI.''ARCH_PREF'OPT"    ! for linking SQUEEZE
  359. - $ ELSE
  360. - $   option_file = "nl:"                ! for linking SQUEEZE
  361. - $ ENDIF
  362. - $ CLOSE optfile
  363. - $!
  364. - $ DEFS = "VMS, NOTOOL, USE_PK, USE_GF, TEXXET, GREY, MAKEPK'ps_options'"
  365. - $ CC /DEFINE = ('DEFS') DVI_INIT.C
  366. - $ CC /DEFINE = ('DEFS') DVI_DRAW.C
  367. - $ CC /DEFINE = ('DEFS') GF.C
  368. - $ CC /DEFINE = ('DEFS') PK.C
  369. - $ CC /DEFINE = ('DEFS') VF.C
  370. - $ CC /DEFINE = ('DEFS') UTIL.C
  371. - $ CC /DEFINE = ('DEFS', "DEFAULT_FONT_PATH=""TEX_FONTS""", -
  372. -      "DEFAULT_VF_PATH=""TEX_VFDIR""", -
  373. -      "DEFAULT_FONT_SIZES=""300/329/360/432/518/622/746""") FONT_OPEN.C
  374. - $ CC /DEFINE = ('DEFS') SPECIAL.C
  375. - $ CC /DEFINE = ('DEFS') EVENTS.C
  376. - $ IF ps_dps .NES. ""
  377. - $  THEN
  378. - $    CC /DEFINE = ('DEFS') PSDPS.C
  379. - $  ENDIF
  380. - $ IF ps_gs .NES. ""
  381. - $  THEN
  382. - $    CC /DEFINE = ('DEFS') PSGS.C
  383. - $  ENDIF
  384. - $ IF ps_head .NES. ""
  385. - $  THEN
  386. - $    CC /DEFINE = ('DEFS') SQUEEZE.C
  387. - $    LINK /EXE=.'ARCH_PREF'EXE SQUEEZE.'ARCH_PREF'OBJ, 'option_file' /OPTION
  388. - $    SQUEEZE := $SYS$DISK:[]SQUEEZE.'ARCH_PREF'EXE
  389. - $    SQUEEZE PSHEADER.TXT PSHEADER.C
  390. - $    CC /DEFINE = ('DEFS') PSHEADER.C
  391. - $    varobjs = varobjs + "PSHEADER.''ARCH_PREF'OBJ,"
  392. - $  ENDIF
  393. - $ CC /DEFINE = ('DEFS') XDVI.C
  394. - $!
  395. - $ LINK 'LDFLAGS'/EXE=.'ARCH_PREF'EXE XDVI.'ARCH_PREF'OBJ, -
  396. -      DVI_INIT.'ARCH_PREF'OBJ, DVI_DRAW.'ARCH_PREF'OBJ, -
  397. -      GF.'ARCH_PREF'OBJ, PK.'ARCH_PREF'OBJ, VF.'ARCH_PREF'OBJ, -
  398. -      UTIL.'ARCH_PREF'OBJ, FONT_OPEN.'ARCH_PREF'OBJ, SPECIAL.'ARCH_PREF'OBJ, -
  399. -      EVENTS.'ARCH_PREF'OBJ, 'varobjs' VMS_XDVI.'ARCH_PREF'OPT/OPTION
  400. - $ DELETE/NOLOG VMS_XDVI.'ARCH_PREF'OPT;*
  401. - $!
  402. - $EXIT:
  403. - $ dummy=f$verify ('old_verify')
  404. - $ EXIT
  405. --- 0 ----
  406. diff -d -N -c xdvi-20/Makefile.cfg ./Makefile.cfg
  407. *** xdvi-20/Makefile.cfg    Thu Jan  1 00:00:00 1970
  408. --- ./Makefile.cfg    Fri Jan 24 01:45:28 1997
  409. ***************
  410. *** 0 ****
  411. --- 1,8 ----
  412. + VARSRCS= pk.c
  413. + VAROBJS= pk.o
  414. + VARLIBS=
  415. + VARDEPLIBS=
  416. + VARLINT=
  417. + LOCAL_LIBRARIES=$(LOCAL_LIBRARIES_TOOL)
  418. + DEPLIBS=$(DEPLIBS_TOOL)
  419. + LINTLIBS=$(LINTLIBS_TOOL)
  420. diff -d -N -c xdvi-20/MakeTeXPK ./MakeTeXPK
  421. *** xdvi-20/MakeTeXPK    Wed May 25 09:02:32 1994
  422. --- ./MakeTeXPK    Fri Jan 24 13:32:04 1997
  423. ***************
  424. *** 18,26 ****
  425.   #
  426.   #   Of course, it needs to be set up for your site.
  427.   #
  428. ! TEXDIR=/usr/lib/tex
  429. ! LOCALDIR=/LocalLibrary/Fonts/TeXFonts
  430. ! DESTDIR=$LOCALDIR/pk
  431.   #
  432.   # TEMPDIR needs to be unique for each process because of the possibility
  433.   # of simultaneous processes running this script.
  434. --- 18,26 ----
  435.   #
  436.   #   Of course, it needs to be set up for your site.
  437.   #
  438. ! TEXDIR=/emtex
  439. ! LOCALDIR=/texfonts
  440. ! DESTDIR=$LOCALDIR/pixel.lj
  441.   #
  442.   # TEMPDIR needs to be unique for each process because of the possibility
  443.   # of simultaneous processes running this script.
  444. ***************
  445. *** 49,55 ****
  446.   then
  447.      if test $BDPI = 300
  448.      then
  449. !       MODE=imagen
  450.      elif test $BDPI = 200
  451.      then
  452.         MODE=FAX
  453. --- 49,55 ----
  454.   then
  455.      if test $BDPI = 300
  456.      then
  457. !       MODE='laserjet['$BDPI' '$BDPI']'
  458.      elif test $BDPI = 200
  459.      then
  460.         MODE=FAX
  461. ***************
  462. *** 83,90 ****
  463.   
  464.   #  Something like the following is useful at some sites.
  465.   # DESTDIR=/usr/local/lib/tex/fonts/pk.$MODE
  466. ! GFNAME=$NAME.$DPI'gf'
  467. ! PKNAME=$NAME.$DPI'pk'
  468.   
  469.   # Clean up on normal or abnormal exit
  470.   trap "cd /; /bin/rm -rf $TEMPDIR $DESTDIR/pktmp.$$" 0 1 2 15
  471. --- 83,90 ----
  472.   
  473.   #  Something like the following is useful at some sites.
  474.   # DESTDIR=/usr/local/lib/tex/fonts/pk.$MODE
  475. ! GFNAME=$DPI'DPI/'$NAME.'gf'
  476. ! PKNAME=$DPI'DPI/'$NAME.'pk'
  477.   
  478.   # Clean up on normal or abnormal exit
  479.   trap "cd /; /bin/rm -rf $TEMPDIR $DESTDIR/pktmp.$$" 0 1 2 15
  480. ***************
  481. *** 138,145 ****
  482.   fi
  483.   
  484.   unset DISPLAY
  485. ! echo "mf \"\\mode:=$MODE; mag:=$MAG; scrollmode; input $NAME\" < /dev/null"
  486. ! mf "\mode:=$MODE; mag:=$MAG; scrollmode; input $NAME" < /dev/null
  487.   if test ! -r $GFNAME
  488.   then
  489.      echo "Metafont failed for some reason on $GFNAME"
  490. --- 138,145 ----
  491.   fi
  492.   
  493.   unset DISPLAY
  494. ! echo "mf386 \"\\mode:=$MODE; mag:=$MAG; scrollmode; input $NAME\" < /dev/null"
  495. ! mf386 "\mode:=$MODE; mag:=$MAG; scrollmode; input $NAME" < /dev/null
  496.   if test ! -r $GFNAME
  497.   then
  498.      echo "Metafont failed for some reason on $GFNAME"
  499. diff -d -N -c xdvi-20/MakeTeXPK.cmd ./MakeTeXPK.cmd
  500. *** xdvi-20/MakeTeXPK.cmd    Thu Jan  1 00:00:00 1970
  501. --- ./MakeTeXPK.cmd    Wed Feb 12 01:27:10 1997
  502. ***************
  503. *** 0 ****
  504. --- 1,66 ----
  505. + /* Rexx */
  506. + /* MakeTexPK */
  507. + /* checks, if the requested font is in psfonts.map */
  508. + /* and calls gsftopk.exe               */                                       */
  509. + /* if not,                       */                                                             */
  510. + /* creates a mfjob file and runs mfjob             */
  511. + /* Change this */
  512. + /* Default mode is the mode to use with mfjob, if you don't know it, let dvipm create
  513. + a mfjob file and have a look into */
  514. + defaultmfmode="laserjet"
  515. + /* fontsubdir is the subdirectory of %dvidrvfonts% where mfjobs stores the fonts */
  516. + font_subdir="pixel.lj"
  517. + /* mapfile is the path to your psfont.map file */
  518. + mapfile='f:\emtex\data\dvips\psfonts.map'
  519. + /* End of required changes, hopefully */
  520. + '@echo off'
  521. + address cmd
  522. + tmpfile="xdvi.mfj"
  523. + env="OS2ENVIRONMENT"
  524. + parse arg name  newres basres dummy mfmode
  525. + if mfmode="" then mfmode=defaultmfmode
  526. + 'if not exist %DVIDRVFONTS% mkdir %DVIDRVFONTS%'
  527. + 'if not exist %DVIDRVFONTS%\'font_subdir' mkdir %DVIDRVFONTS%\'font_subdir
  528. + mag=(newres/basres)
  529. + do forever
  530. +     if lines(mapfile)=0 then leave
  531. +     line=linein(mapfile)
  532. +     if word(line,1)=name then do
  533. +         'gsftopk 'name newres
  534. +     'if not exist %DVIDRVFONTS%\'font_subdir'\'newres'dpi mkdir %DVIDRVFONTS%\'font_subdir'\'newres'dpi'
  535. +     'cp 'name'.'newres'pk %DVIDRVFONTS%\'font_subdir'\'newres'dpi\'name'.pk'
  536. +          'rm 'name'.'newres'pk'
  537. +          exit
  538. +     end
  539. + end
  540. + rc=lineout(tmpfile,"input [dvidrv];")
  541. + rc=lineout(tmpfile,"{")
  542. + rc=lineout(tmpfile,"driver=xdvi;")
  543. + rc=lineout(tmpfile,"mode="||mfmode||"["||basres||" "||basres"];")
  544. + rc=lineout(tmpfile,"output=pk[$DVIDRVFONTS:"||font_subdir||"\@Rrdpi\@f{.pk,.pxl}];")
  545. + rc=lineout(tmpfile,"{font="||name||"; mag="||mag||";}")
  546. + rc=lineout(tmpfile,"}")
  547. + rc=stream(tmpfile,"C","CLOSE")
  548. + 'mfjob /3 'tmpfile
  549. + 'if exist 'tmpfile 'del 'tmpfile
  550. + exit
  551. diff -d -N -c xdvi-20/readme.os2 ./readme.os2
  552. *** xdvi-20/readme.os2    Thu Jan  1 00:00:00 1970
  553. --- ./readme.os2    Wed Feb 12 01:26:56 1997
  554. ***************
  555. *** 0 ****
  556. --- 1,61 ----
  557. + This is my enhanced xdvi port to xfree86-os2.
  558. + You need:
  559. + -- EMX 0.9c or later
  560. + -- Emtex correctly installed with mf386
  561. + -- XFree86 - os2 3.2 (or later ?)
  562. + New Features:
  563. + -- Xdvi now understands drive-letters and semicolons as path-seperators
  564. + -- Xdvi is now compiled with the SEARCH-SUBDIRECTORIES flag
  565. + -- Xdvi will now call ghostscript to display postscript-pictures (see note below)
  566. + -- MakeTeXPk.cmd will now look into your psfonts.map file and call
  567. +    gsftopk to display postscript fonts
  568. + -- Xdvi will now use virtual fonts
  569. + Setup:
  570. + You have to set up some environment variables, first XDVIFONTS. Example:
  571. + set XDVIFONTS=f:/texfonts/*/%ddpi/%f.%p;c:/my/special/fonts/%ddpi/%f.%p
  572. + where,
  573. + - the asterisk means, that all subdirectories in f:/texfonts should be searched,
  574. + - %ddpi/ means, that fonts with a size of 300 dpi are in subdirectories called 
  575. +   300dpi,
  576. + - and %f.%p means, that font-files have names like ptmr8r.pk in these directories.
  577. + Second XDVIVFS. Example:
  578. + set XDVIVFS=f:/texfonts/vf;f:/texfonts/vf/adobe
  579. + Note: There is no possibility to search subdirectories here, so you have to list
  580. + all directories, where you have virtual fonts.
  581. + I think, this is the standard emtex-setup, if yours is different refer to
  582. + the manpage and change this to your needs.
  583. + To enable automatic font-generation you can use the rexx-script MakeTeXPK.cmd (provided 
  584. + here for your comfort), which will first have a look into your psfonts.map file
  585. + (you have this, if you have dvips installed) and will then call gsftopk, if it finds
  586. + the requested font in this file. If not, it will create a mfjob-file (xdvi.mfj) and then 
  587. + will call mfjob. 
  588. + This script will be called automatically by xdvi and has to reside somewhere in your path.
  589. + The are some changes required to meet your setup in this script. So have a look into, I hope
  590. + everything is explained there well enough.
  591. + If you would like to let Xdvi display postscript pictures in your documents, you need a
  592. + ghostscript version, which knows the X11 Device. This is standard in UNIX-Environments, but
  593. + not under OS/2. I have compiled a version, which can do this and will publish the executables
  594. + on my web-page. You will still need the standard ghostscript-files to let this work.
  595. + Suggestions, especially for a better MakeTeXPk-Script are welcome.
  596. + Thanks to Shigeru Miyata (miyata@kusm-kyoto-u.ac.jp) for some usefull hints.
  597. + The standard restrictions (no guarantee for anything) apply.
  598. + Have Fun,
  599. + Peter Ganten
  600. + University of Bremen
  601. + Department of Psychology
  602. + j09g@zfn.uni-bremen.de
  603. diff -d -N -c xdvi-20/special.c ./special.c
  604. *** xdvi-20/special.c    Tue May  9 22:05:52 1995
  605. --- ./special.c    Wed Jan 29 18:26:52 1997
  606. ***************
  607. *** 668,678 ****
  608. --- 668,682 ----
  609.    *    to the standard TeX Directory Structure (TDS).
  610.    */
  611.   
  612. + // #ifdef __EMX__
  613. + // #define    PATH_SEP    ';'
  614. + // #else
  615.   #ifndef    VMS
  616.   #define    PATH_SEP    ':'
  617.   #else    /* VMS */
  618.   #define    PATH_SEP    '/'
  619.   #endif    /* VMS */
  620. + // #endif
  621.   
  622.   static    FILE *
  623.   pathfopen(filename, buffer, pathlist1, pathlist2)
  624. diff -d -N -c xdvi-20/util.c ./util.c
  625. *** xdvi-20/util.c    Tue Apr 18 22:29:38 1995
  626. --- ./util.c    Fri Jan 24 01:50:42 1997
  627. ***************
  628. *** 131,136 ****
  629. --- 131,137 ----
  630.    *    argument is lower case.
  631.    */
  632.   
  633. + #ifndef __EMX__
  634.   int
  635.   memicmp(s1, s2, n)
  636.       _Xconst char    *s1;
  637. ***************
  638. *** 146,152 ****
  639.       }
  640.       return 0;
  641.   }
  642.   
  643.   /*
  644.    *    Close the pixel file for the least recently used font.
  645. --- 147,153 ----
  646.       }
  647.       return 0;
  648.   }
  649. ! #endif
  650.   
  651.   /*
  652.    *    Close the pixel file for the least recently used font.
  653. Common subdirectories: xdvi-20/xdvi-20 and ./xdvi-20
  654. diff -d -N -c xdvi-20/xdvi.h ./xdvi.h
  655. *** xdvi-20/xdvi.h    Fri Apr 14 00:42:58 1995
  656. --- ./xdvi.h    Fri Jan 24 01:49:06 1997
  657. ***************
  658. *** 700,706 ****
  659. --- 700,708 ----
  660.   #endif
  661.   extern    char    *xmalloc ARGS((unsigned, _Xconst char *));
  662.   extern    void    alloc_bitmap ARGS((struct bitmap *));
  663. + #ifndef __EMX__
  664.   extern    int    memicmp ARGS((_Xconst char *, _Xconst char *, size_t));
  665. + #endif
  666.   extern    FILE    *xfopen ARGS((_Xconst char *, OPEN_MODE_ARGS));
  667.   #ifdef    PS_GS
  668.   extern    int    xpipe ARGS((int *));
  669.