blob: 0a14ffda3b2d926c9de88350b972d73274b778ba (
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
|
@echo off
setlocal
%~d0
cd %~p0
echo ==========^> Updating version...
echo \def\zhmVersion{%%> zhm-version.tex
if exist ..\VERSION (
type ..\VERSION >> zhm-version.tex
) else (
echo devel%%>> zhm-version.tex
)
echo }>> zhm-version.tex
echo \def\zhmRevision{%%>> zhm-version.tex
git rev-parse --short HEAD >> zhm-version.tex
echo }>> zhm-version.tex
echo ==========^> Compiling document...
xelatex -interaction=batchmode zhmakeindex.tex
echo ==========^> Running BibTeX...
bibtex zhmakeindex
echo ==========^> Running zhmakeindex...
zhmakeindex zhmakeindex
echo ==========^> Recompiling document...
xelatex -interaction=batchmode zhmakeindex.tex
xelatex -interaction=batchmode zhmakeindex.tex
endlocal
|