2015-09-07 15:27:30 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
##
|
|
|
|
## Prepare the report
|
|
|
|
|
2017-12-03 15:43:22 +01:00
|
|
|
if [ -z "$ERESSEA" ]; then
|
2015-09-07 15:27:30 +02:00
|
|
|
echo "You have to define the \$ERESSEA environment variable to run $0"
|
2019-07-31 08:43:23 +02:00
|
|
|
exit 2
|
2015-09-07 15:27:30 +02:00
|
|
|
fi
|
|
|
|
|
2019-07-31 08:43:23 +02:00
|
|
|
if [ -n "$1" ]; then
|
2017-12-03 15:43:22 +01:00
|
|
|
GAME="$ERESSEA/game-$1"
|
2015-09-07 15:27:30 +02:00
|
|
|
else
|
|
|
|
GAME=$ERESSEA
|
|
|
|
fi
|
|
|
|
|
2017-12-03 15:43:22 +01:00
|
|
|
cd "$GAME/reports" || exit
|
2015-09-07 15:27:30 +02:00
|
|
|
for REPORT in *.sh
|
|
|
|
do
|
2020-03-15 14:32:37 +01:00
|
|
|
#echo -n "Sending "
|
|
|
|
#basename "$REPORT" .sh
|
2017-12-03 15:43:22 +01:00
|
|
|
bash "$REPORT"
|
2015-09-07 15:27:30 +02:00
|
|
|
done
|
2017-12-03 15:43:22 +01:00
|
|
|
cd - || exit
|
2015-09-07 15:27:30 +02:00
|
|
|
|