summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/disser/nomake.cmd
blob: 3ed3c9711f31bdb15f1f27b506694f84e6182ee7 (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
@echo off

set target=disser
if %texmf%.==. set texmf=d:\programs\miktex\local
set destdir=%texmf%\tex\latex\%target%
set clean=*.rtx *.cls *.log *.out *.aux *.dvi *.idx *.glo *.toc *.ind *.ilg *.bak

if %1.==. (
:make
	latex %target%.ins
	echo.
	echo Now run '%~n0 install'
	echo.
goto :eof
)

if %1.==. goto :eof

if %1.==clean. (
	del %clean%
	goto :eof
)

if %1.==install. (
	if not exist %target%.cls (
		echo You must run 'nomake' first
		goto :eof
	)
	if not exist %destdir% mkdir %destdir%
	copy /y *.rtx %destdir% > nul
	copy /y *.cls %destdir% > nul
	goto :eof
)

if %1.==doc. (
	latex %target%.dtx
	latex -src-specials %target%.dtx
)