-
Notifications
You must be signed in to change notification settings - Fork 0
/
0ajod.bat
49 lines (41 loc) · 1.86 KB
/
0ajod.bat
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
echo off
rem build jod.pdf (jod.tex) is root file
title Running JOD/LaTeX ...
rem these paths change from machine to machine - check upfront
if not exist C:\j64\j950\addons\general\joddocument\pdfdoc\jod.pdf goto Location2
if not exist C:\j64\j960\addons\general\joddocument\pdfdoc\jod.pdf goto Location2
if not exist C:\jod\j950\joddev\alien\jodgit\joddocument\pdfdoc\jod.pdf goto Location2
if not exist C:\jrelease\jaddons\general\joddocument_rel\pdfdoc\jod.pdf goto Location2
if not exist C:\Users\baker\AppData\Local\SumatraPDF\SumatraPDF.exe goto Location2
latex jod
bibtex jod
makeindex jod
latex jod
makeindex jod
latex jod
dvips jod
if exist jod.pdf erase jod.pdf
ps2pdf jod.ps
if not exist jod.pdf goto TheEnd
rem copy jod.pdf to working jod directories
if exist C:\j64\j950\addons\general\joddocument\pdfdoc\jod.pdf copy jod.pdf C:\j64\j950\addons\general\joddocument\pdfdoc\jod.pdf
if exist C:\j64\j960\addons\general\joddocument\pdfdoc\jod.pdf copy jod.pdf C:\j64\j960\addons\general\joddocument\pdfdoc\jod.pdf
rem update stage and git release directories
if exist C:\jod\j950\joddev\alien\jodgit\joddocument\pdfdoc\jod.pdf copy jod.pdf C:\jod\j950\joddev\alien\jodgit\joddocument\pdfdoc\jod.pdf
if exist C:\jrelease\jaddons\general\joddocument_rel\pdfdoc\jod.pdf copy jod.pdf C:\jrelease\jaddons\general\joddocument_rel\pdfdoc\jod.pdf
rem display pdf
title JOD/LaTeX complete displaying PDF ...
if exist C:\Users\baker\AppData\Local\SumatraPDF\SumatraPDF.exe goto Location0
if exist C:\PROGRA~2\SumatraPDF\SumatraPDF.exe goto Location1
goto TheEnd
:Location0
C:\Users\baker\AppData\Local\SumatraPDF\SumatraPDF.exe jod.pdf
goto TheEnd
:Location1
C:\PROGRA~2\SumatraPDF\SumatraPDF.exe jod.pdf
goto TheEnd
:Location2
echo jod.pdf distribution paths not set or invalid - edit and rerun
pause
goto TheEnd
:TheEnd