-
Notifications
You must be signed in to change notification settings - Fork 153
Expand file tree
/
Copy pathParseRaws.bat
More file actions
22 lines (16 loc) · 787 Bytes
/
ParseRaws.bat
File metadata and controls
22 lines (16 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
REM Helper bat file to create ps files with Graphiz's dot
REM Graphiz must be installed and must be in Windows's PATH, alternatively just put your 'dot.exe' directory in the following var
SET "dotPath="
REM Change this to the working directory, in Unity, if you place "ReGoap" inside Assets/, it will be '../../PlanDebugger'
SET "workingPath=../../PlanDebugger/"
SET "rawPath=Raws"
SET "resultsPath=PDFs"
SET "outputType=pdf"
SET "rawSearch=%rawPath%/*"
SET "currentDir=%cd%"
CD %workingPath%
ECHO "Changing working path to %workingPath%. Parsing files in %rawPath%. Saving in %resultsPath% with file type '%outputType%'."
MKDIR %resultsPath%
FOR %%I IN (%rawSearch%) DO %dotPath%dot -T%outputType% %rawPath%/%%I -o %resultsPath%/%%I.pdf
explorer %cd%\%resultsPath%
CD %currentDir%