-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrunParser.ps1
23 lines (19 loc) · 1.01 KB
/
runParser.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Check if the required number of arguments is provided
if ($Args.Count -lt 3) {
Write-Host "Usage: runParser.ps1 <parserScriptPath> <htmlParentDirectory> <outputDirectory> [debug(false)]"
exit 1
}
$parserScriptPath = $Args[0] # Path to parser.py
$htmlParentDirectory = $Args[1] # Path to ElunaLuaEngine.github.io repository
$outputDirectory = $Args[2] # Path to output directory
$debug = $false # Default debug value
if ($Args.Count -ge 4) {
$debug = [bool]$Args[3]
}
# Define the list of subdirectories to process
$subdirectories = @("Aura", "BattleGround", "Corpse", "Creature", "ElunaQuery", "GameObject", "Group", "Guild", "Global", "Item", "Map", "Object", "Player", "Quest", "Spell", "Unit", "Vehicle", "WorldObject", "WorldPacket")
# Iterate over each subdirectory
foreach ($subdir in $subdirectories) {
$htmlDirectory = Join-Path -Path $htmlParentDirectory -ChildPath $subdir
python $parserScriptPath $htmlDirectory $outputDirectory $debug
}