forked from simulationcraft/simc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
generate_profiles.sh
executable file
·43 lines (41 loc) · 1010 Bytes
/
generate_profiles.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
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env sh
SIMC=${SIMC:-../../engine/simc}
if [ ! -d "profiles" ]; then
echo 'You must run this script with simc root as current working directory.'
exit 0
fi
cd 'profiles'
# PreRaids doesn't match the typical pattern
PROFDIR='PreRaids'
echo "---$PROFDIR---"
if [ -d $PROFDIR ]; then
cd $PROFDIR/
${SIMC} "../generators/$PROFDIR/PR_Generate.simc"
cd ../
else
echo 'Skipped PreRaids, directory not found.'
fi
# DungeonSlice doesn't match the typical pattern
# PROFDIR='DungeonSlice'
# echo "---$PROFDIR---"
# if [ -d $PROFDIR ]; then
# cd $PROFDIR/
# ../../engine/simc "../generators/$PROFDIR/DS_Generate.simc"
# cd ../
# else
# echo 'Skipped DungeonSlice, directory not found.'
# fi
# TierXX profiles generation
for tier in 29 30 31
do
PROFDIR="Tier$tier"
echo "---$PROFDIR---"
if [ ! -d $PROFDIR ]; then
echo "Skipped $PROFDIR, directory not found."
continue
fi
cd $PROFDIR/
${SIMC} '../generators/Tier'$tier'/T'$tier'_Generate.simc'
cd ../
done
echo 'done'