forked from simulationcraft/simc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
generate_profiles.sh
executable file
·56 lines (54 loc) · 1.27 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/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 season in DF4
do
PROFDIR="$season"
echo "---$PROFDIR---"
if [ ! -d $PROFDIR ]; then
echo "Skipped $PROFDIR, directory not found."
continue
fi
cd $PROFDIR/
${SIMC} '../generators/'$season'/'$season'_Generate.simc'
cd ../
done
# TODO: remove after Dragonflight ends
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'