Skip to content

Commit 4ec2c98

Browse files
committed
Small improvement to build script.
1 parent fa0e7e5 commit 4ec2c98

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

build.cmd

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
@echo off
22
cd /d "%~dp0"
33

4-
set "PANDOC=C:\Program Files\Pandoc\pandoc.exe"
4+
if "%PANDOC%"=="" (
5+
set "PANDOC=C:\Program Files\Pandoc\pandoc.exe"
6+
)
7+
8+
if "%VS2019INSTALLDIR%"=="" (
9+
set "VS2019INSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional"
10+
)
11+
12+
if not exist "%PANDOC%" (
13+
echo Error: PANDOC executable not found!
14+
goto:finished
15+
)
516

617
if not exist "%VS2019INSTALLDIR%\Common7\Tools\VsDevCmd.bat" (
718
echo Error: VS2019INSTALLDIR not found!

0 commit comments

Comments
 (0)