forked from simulationcraft/simc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspelldatadump.sh
executable file
·33 lines (25 loc) · 946 Bytes
/
spelldatadump.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
CLASSES=(warrior hunter monk paladin rogue shaman mage warlock druid deathknight priest demonhunter)
# get directory of this script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/..
for CLASS in "${CLASSES[@]}"
do
echo "Processing $CLASS"
FILE=SpellDataDump/$CLASS.txt
echo $FILE
./engine/simc spell_query="spell.class=$CLASS" > $FILE.unix
# convert unix line endings to windows since that's been the standard
sed 's/$'"/`echo \\\r`/" $FILE.unix > $FILE
rm $FILE.unix
done
FILE=SpellDataDump/allspells.txt
./engine/simc spell_query="spell" > $FILE.unix
# convert unix line endings to windows since that's been the standard
sed 's/$'"/`echo \\\r`/" $FILE.unix > $FILE
rm $FILE.unix
FILE=SpellDataDump/soulbind.txt
./engine/simc spell_query="soulbind_spell" > $FILE.unix
# convert unix line endings to windows since that's been the standard
sed 's/$'"/`echo \\\r`/" $FILE.unix > $FILE
rm $FILE.unix