buildregress now generates save files correctly.

This commit is contained in:
Aaron Traas 2017-06-27 11:36:24 -04:00 committed by Eric S. Raymond
parent 2781413fa9
commit 7b1eb1ec58

View file

@ -30,6 +30,10 @@ listcheck:
# corresponding *.chk files to see which tests this runs. # corresponding *.chk files to see which tests this runs.
TESTLOADS := $(shell ls -1 *.log | sed '/.log/s///' | sort) TESTLOADS := $(shell ls -1 *.log | sed '/.log/s///' | sort)
buildregress: buildregress:
$(ECHO) -n "Generate save file with -1000 deaths: "
../cheat -d -1000 -o cheat_numdie.adv
$(ECHO) -n "Generate save file with version -1337: "
../cheat -v -1337 -o resume_badversion.adv
@for file in $(TESTLOADS); do \ @for file in $(TESTLOADS); do \
echo "Remaking $${file}.chk"; \ echo "Remaking $${file}.chk"; \
OPTS=`sed -n /#options:/s///p <$${file}.log`; \ OPTS=`sed -n /#options:/s///p <$${file}.log`; \