From: Eric S. Raymond Date: Tue, 30 Nov 2010 08:57:12 +0000 (+0000) Subject: Move the replay debugging script iup from the C sources directory. X-Git-Tag: 2.0~18 X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=commitdiff_plain;h=5d386eeefb0288ed4037555ae41cd423f4a8d3dc Move the replay debugging script iup from the C sources directory. --- diff --git a/c-version/src/replay b/c-version/src/replay deleted file mode 100755 index 9e5c196..0000000 --- a/c-version/src/replay +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh -# Replay the last SST game. With arg, use only that many lines of the log -# -# Because the replay log captures the random-number seed, -# repeating this any number of times should produce identical games, -# unless the code changes. -# -if [ $1 ] -then - head -n `expr $1 + 2` replay.log -else - mv /usr/tmp/sst-input.log replay.log -fi -python sst.py -t -r replay.log diff --git a/doc/Makefile.am b/doc/Makefile.am deleted file mode 100644 index 4488435..0000000 --- a/doc/Makefile.am +++ /dev/null @@ -1,15 +0,0 @@ -man_MANS = sst.6 -pkgdata_DATA = sst-doc.txt sst.doc -CLEANFILES = $(pkgdata_DATA) $(man_MANS) -EXTRA_DIST = makehelp.py sst-doc.xml sst-layer.xsl sst.xml - -sst.6: sst.xml - xmlto man sst.xml - -sst-doc.txt: sst-doc.xml - xmlto -m sst-layer.xsl txt sst-doc.xml -sst.doc: sst-doc.txt - ./makehelp.py >sst.doc - -sst-doc.html: sst-doc.xml - xmlto xhtml-nochunks sst-doc.xml diff --git a/replay b/replay new file mode 100755 index 0000000..9e5c196 --- /dev/null +++ b/replay @@ -0,0 +1,14 @@ +#!/bin/sh +# Replay the last SST game. With arg, use only that many lines of the log +# +# Because the replay log captures the random-number seed, +# repeating this any number of times should produce identical games, +# unless the code changes. +# +if [ $1 ] +then + head -n `expr $1 + 2` replay.log +else + mv /usr/tmp/sst-input.log replay.log +fi +python sst.py -t -r replay.log