if not exist "documents" ( mkdir "documents" ) REM This is the order of dependencies of the files. mkdir "Build Logs" cd ".\D-Soil Model - Test plan" pdflatex "D-Soil Model - Test plan.tex" bibtex "D-Soil Model - Test plan" pdflatex "D-Soil Model - Test plan.tex" pdflatex "D-Soil Model - Test plan.tex" pdflatex "D-Soil Model - Test plan.tex" > Testplan_Log.txt xcopy Testplan_Log.txt "..\Build Logs" /Y xcopy *.aux ..\documents /Y xcopy *.pdf ..\documents /Y cd "..\D-Soil Model - Test report" pdflatex "D-Soil Model - Test Report.tex" bibtex "D-Soil Model - Test Report" pdflatex "D-Soil Model - Test Report.tex" pdflatex "D-Soil Model - Test Report.tex" pdflatex "D-Soil Model - Test Report.tex" > TestReport_Log.txt xcopy TestReport_Log.txt "..\Build Logs" /Y xcopy *.aux ..\documents /Y xcopy *.pdf ..\documents /Y cd "..\DSoilModel - Release Notes" pdflatex "DSoilModel - Release Notes.tex" bibtex "DSoilModel - Release Notes" pdflatex "DSoilModel - Release Notes.tex" pdflatex "DSoilModel - Release Notes.tex" pdflatex "DSoilModel - Release Notes" > ReleaseNotes_Log_Exclude.txt xcopy ReleaseNotes_Log_Exclude.txt "..\Build Logs" /Y xcopy *.aux ..\documents /Y xcopy *.pdf ..\documents /Y cd .. python parseLogs.py cd .. xcopy .\LaTeX\documents\*.pdf . /Y