-
Notifications
You must be signed in to change notification settings - Fork 1
/
runParser.sh
21 lines (17 loc) · 857 Bytes
/
runParser.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
# Check if the required number of arguments is provided
if [ "$#" -lt 3 ]; then
echo "Usage: $0 <parserScriptPath> <htmlParentDirectory> <outputDirectory>"
exit 1
fi
# Assign input arguments to variables
parserScriptPath="$1" # Path to parser.py
htmlParentDirectory="$2" # Path to ElunaLuaEngine.github.io repository
outputDirectory="$3" # Path to output directory
# 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
for subdir in "${subdirectories[@]}"; do
htmlDirectory="${htmlParentDirectory}/${subdir}"
python3 "$parserScriptPath" "$htmlDirectory" "$outputDirectory"
done