summaryrefslogtreecommitdiff
path: root/support/mnu/prints.bat
blob: ae10a785436e8af9687eeb4311e447b0ee3495d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
rem ... The "subroutine batch" called from TEXBAT.BAT
if errorlevel 46 goto clearOP
if errorlevel 45 goto editOP
if not exist %MAIN%.opt set OPT=//
if     exist %MAIN%.opt set OPT=@%MAIN%.opt
if errorlevel 43 goto laser
if errorlevel 42 goto dot
if errorlevel 41 goto preview
goto end
:preview
  if not exist %TEXDIR%\fonts\lib%DPI%.fli goto sorry
  if not exist %MAIN%.opt type %TEXDIRCFG%\messprn.txt
  dvidrv dviscr @scr%DPI%.cnf /fl300 %OPT% %MAIN%
  goto end
:dot
  if not exist %TEXDIR%\dot%DPI%.dot goto bsorry
  if not exist %TEXDIR%\fonts\lib%DPI%.fli goto sorry
  if %OPT%==// type %TEXDIRCFG%\messprn.txt
  dvidrv dvidot dot%DPI%.dot @prn%DPI%.cnf %OPT% %MAIN% %MARK%
  goto end
:laser
  if not exist %TEXDIR%\dvihplj.exe goto bsorry
  if not exist %TEXDIR%\fonts\lib300.fli goto sorry
  if %OPT%==// type %TEXDIRCFG%\messprn.txt
  dvidrv dvihplj @hplj.cnf %OPT% %MAIN% %MARK%
  goto end
:editOP
  type %TEXDIRCFG%\messprn.txt
  echo press any key to enter to editor ...
  %COMSPEC% /c pause > nul
  %EDIT% %MAIN%.opt
  set MNU=41
  goto end
:clearOP
  del %MAIN%.opt
  set MNU=41
  goto end
:bsorry
  set MNU=49
:sorry
  %RAM%\mnu %TEXDIRCFG%\sorry.mnu
  set MNU=41
:end