blob: aa1d1770b9dbd64302201f60913a0eac5d683b67 (
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
55
56
57
58
59
60
61
62
|
@echo off
set target=disser
if %texmf%.==. set texmf=d:\programs\miktex\local
set destdir=%texmf%\tex\latex\%target%
set docdir=%texmf%\doc\latex\%target%
set clean=*.rtx *.cls *.log *.out *.aux *.dvi *.idx *.glo *.toc *.ind *.ilg *.bak *.bbl *.blg
if %1.==. (
:default
goto :all
)
:start
if %1.==. goto :eof
if %1.==all. (
:all
latex %target%.ins
call :doc
goto :eof
)
if %1.==class. (
:class
latex %target%.ins
goto :eof
)
if %1.==clean. (
:clean
del %clean%
goto :eof
goto :end
)
if %1.==install. (
:install
if not exist %target%.cls (
echo You must run 'nomake' first
goto :eof
)
if not exist %destdir% mkdir %destdir%
if not exist %docdir% mkdir %docdir%
xcopy /y /f *.rtx %destdir%
xcopy /y /f *.cls %destdir%
xcopy /y /f *.dvi %docdir%
goto :end
)
if %1.==doc. (
:doc
chcp 1251
latex %target%.dtx
latex -src-specials %target%.dtx
goto :end
)
if %1. neq . (echo Don't know how to make %1 )
:end
shift & goto :start
|