summaryrefslogtreecommitdiff
path: root/support/mnu/others.bat
blob: 47abbcec6c974310cae237d92b89c3ce23c0a556 (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
44
45
46
47
48
49
50
51
52
53
54
rem ... the "subroutine batch" called from TEXBAT.BAT
if errorlevel 136 goto gsview
if errorlevel 135 goto texcad
if errorlevel 134 goto bibtex
if errorlevel 133 goto makein
if errorlevel 132 goto dvips
if errorlevel 131 goto dviout
goto end

:dviout
  if not exist %TEXDIR%\dvi-out.exe goto sorry
  %TEXDIR%\dvi-out %MAIN%
  set MNU=130
  if errorlevel 1 pause
  if errorlevel 1 %RAM%\mnu %TEXDIRCFG%\sorry.mnu
  set MNU=131
  goto end

:dvips
  if not exist %TEXDIR%\dvips.exe goto sorry  
  %TEXDIR%\dvi-out -m %MAIN%
  if errorlevel 1 pause
  %TEXDIR%\dvips -a %MAIN%
  goto end

:makein
  if not exist %TEXDIR%\csindex.exe goto sorry
  %TEXDIR%\csindex %INDEXOPT% %MAIN%
  goto end

:bibtex
  if not exist %TEXDIR%\csbibtex.exe goto sorry
  %COMSPEC% /c%TEXDIR%\csbibtex %BIBTEXOPT% %MAIN%
  goto end

:texcad
  if not exist %TEXDIR%\texcad\texcad.exe goto sorry
  echo Pozor. Pri prvnim vyvolani programu TEXCAD musite uvest cestu pro BGI:
  echo     %TEXDIR%\texcad
  echo Tento udaj zopakujte a ulozte uvnitr programu v nabidce OPTIONS
  %TEXDIR%\texcad\texcad
  goto end

:gsview
  %TEXDIR%\gs -I%TEXDIR%\gslib %MAIN%.ps > nul
  goto end

rem  Zde lze analogicky zaradit dalsi software.

:sorry
  %RAM%\mnu %TEXDIRCFG%\sorry.mnu
:end