cyphesis/scripts/update_regression.sh
Erik Ogenvik 2dca4949ed Created "deeds" ruleset and made it default.
It's currently a copy of the Mason ruleset.
Where Mason focuses on letting the users create the world themselves,
Deeds instead focuses on allowing world authors to set up enticing
worlds with gameplay and stories. In contrast to Mason there are more
features available to the world authors which allow for automatic
creation of entities and so on.
2013-11-15 21:14:47 +01:00

16 lines
518 B
Bash
Executable file

#!/bin/bash
set -e
REGRESSION="rulesets/deeds/regression.py"
CLASSES=$(grep --exclude=data/tasks.xml --exclude=data/operations.xml \
--exclude=data/werewolf.xml --exclude=data/acorn.xml \
"^ \+<string name=\"id\">\([a-z_]\+\)<\/string>" data/*.xml |
sed "s/^.*<string name=\"id\">\([a-z_]\+\)<\/string>/\"\1\", /" |
sort)
# Strip off the trailing ,
CLASSES=$(echo ${CLASSES} | sed "s/, \?$//")
sed -i -e "s/^ALL_CLASSES=\[.*\]$/ALL_CLASSES=[${CLASSES}]/" ${REGRESSION}