[units.wesnoth.org] Add safeguard for mainline.
If parsing mainline WML failed for whatever reason, there's no point updating the live website copy.
This commit is contained in:
parent
ee047e7ce9
commit
0e9b76f03c
1 changed files with 5 additions and 4 deletions
|
@ -36,16 +36,17 @@ rm -rf $TEMP/*
|
|||
|
||||
# we only need the parser, but have to build the game executable for that
|
||||
echo BUILDING
|
||||
#make -C $BUILD wesnoth > /dev/null 2>&1 || true
|
||||
#make -C $BUILD mo-update > /dev/null 2>&1
|
||||
make -C $BUILD wesnoth > /dev/null 2>&1 || true
|
||||
make -C $BUILD mo-update > /dev/null 2>&1
|
||||
|
||||
# later can just rebuild updated campaigns, but for now rebuild everything
|
||||
rm -f $DIR/overview.txt
|
||||
|
||||
echo DOWNLOADING
|
||||
#$TOOLS/wesnoth_addon_manager -p $PORT -d '.*' -c $ADDONS > $LOG/wesnoth_addon_manager.txt 2>&1 &&
|
||||
$TOOLS/wesnoth_addon_manager -p $PORT -d '.*' -c $ADDONS > $LOG/wesnoth_addon_manager.txt 2>&1 &&
|
||||
echo WORKING
|
||||
python -u $TOOLS/wmlunits -t $TRANS -D $DATA -o $TMPOUT -w $EXE -C $CONFIG -a $ADDONS -L $DIR/overview.txt -B $DIR/overview.txt -T $TIMEOUT # > $LOG/wmlunits.txt 2>&1 &&
|
||||
python -u $TOOLS/wmlunits -t $TRANS -D $DATA -o $TMPOUT -w $EXE -C $CONFIG -a $ADDONS -L $DIR/overview.txt -B $DIR/overview.txt -T $TIMEOUT > $LOG/wmlunits.txt 2>&1 &&
|
||||
test -f $TMPOUT/mainline/en_US/mainline.html
|
||||
rsync -vaz --delete $TMPOUT/ $OUT > $LOG/rsync.txt 2>&1 &&
|
||||
rm -rf $TEMP/* &&
|
||||
rm -rf $TMPOUT
|
||||
|
|
Loading…
Add table
Reference in a new issue