blob: e84f3cc0004f8a550db4206b6471fe56b1c204b2 (
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
|
@echo off
rem nomake script for LaTeX projects
rem Author: Stanislav Kruchinin <stanislav.kruchinin@gmail.com>
setlocal enabledelayedexpansion
if "!texmf!"=="" set texmf=%programfiles%\miktex
if "!docdir!"=="" set tdir=!texmf!\doc\latex\%target%
if "%CMDEXTVERSION%"=="" (
echo Error: This script requires command interpreter from Windows 2000 or above.
goto :eof
)
if "%1"=="help" (
set subdirs=bachelor
) else (
set subdirs=bachelor ..\master ..\candidate ..\doctor
)
if "%1"=="install" (
:install
if not exist "%docdir%" md "%docdir%"
xcopy /y /e /i /f ..\templates "%tdir%\templates"
xcopy /y /e /i /f ..\include "%tdir%\include"
goto :eof
)
for %%i in (%subdirs%) do @cd %%i & call nomake %*
|