forked from simulationcraft/simc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
generate_profiles_ci.sh
executable file
·42 lines (41 loc) · 905 Bytes
/
generate_profiles_ci.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
#!/usr/bin/env sh
set -e
if [ ! -d "profiles" ]; then
echo 'You must run this script with simc root as current working directory.'
exit 0
fi
cd 'profiles'
PROFDIR='PreRaids'
echo "---$PROFDIR---"
if [ -d $PROFDIR ]; then
cd $PROFDIR/
${SIMC_CLI_PATH} "../generators/$PROFDIR/PR_Generate.simc"
cd ../
else
echo 'Skipped PreRaids, directory not found.'
fi
for season in DF4
do
PROFDIR="$season"
echo "---$PROFDIR---"
if [ ! -d $PROFDIR ]; then
echo "Skipped $PROFDIR, directory not found."
continue
fi
cd $PROFDIR/
${SIMC_CLI_PATH} '../generators/'$season'/'$season'_Generate.simc'
cd ../
done
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_CLI_PATH} '../generators/Tier'$tier'/T'$tier'_Generate.simc'
cd ../
done
echo 'done'