mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
34 lines
626 B
Bash
34 lines
626 B
Bash
|
|
# check environment
|
|
|
|
# common checks
|
|
|
|
if [ ! -d "$EVDIR" ]; then
|
|
|
|
echo "The evennia dir is not found at $EVDIR.";
|
|
exit 1
|
|
else
|
|
echo "Evennia dir correctly set to $EVDIR.";
|
|
fi
|
|
|
|
if [ ! -d "$EVGAMEDIR" ]; then
|
|
|
|
echo "The gamedir is not found at $EVGAMEDIR";
|
|
exit 1
|
|
else
|
|
echo "Evennia game dir correctly set to $EVGAMEDIR.";
|
|
fi
|
|
|
|
if [ $# -ne 0 ]
|
|
|
|
# a multi-version build
|
|
|
|
then
|
|
|
|
if [ -n "$(git status --untracked-files=no --porcelain)" ]; then
|
|
echo "There are uncommitted changes. Make sure to commit everything in your current branch before doing a multiversion build."
|
|
exit 1
|
|
fi
|
|
|
|
fi
|
|
|