Rename 2012/zeitak/test.sh try.sh
This is because it was used in the same way as the try scripts and it matches better other entries and looks better with the manifest (makes it easier to see what it is for). Rebuilt manifest, generated .entry.json and index.html files. The thanks file was updated accordingly.
This commit is contained in:
1 parent
f0f6949958
commit
56f53ee0fc
11 files changed
+22
-17
No files matched your search
@@ -58,12 +58,12 @@
|
||||
"entry_text" : "original source code"
|
||||
},
|
||||
{
|
||||
"file_path" : "test.sh",
|
||||
"file_path" : "try.sh",
|
||||
"inventory_order" : 100,
|
||||
"OK_to_edit" : true,
|
||||
"display_as" : "shellscript",
|
||||
"display_via_github" : true,
|
||||
"entry_text" : "test tool"
|
||||
"entry_text" : "script to try entry"
|
||||
},
|
||||
{
|
||||
"file_path" : "correct.java",
|
||||
|
||||
@@ -137,7 +137,7 @@ all: data ${TARGET}
|
||||
${PROG}: ${PROG}.c
|
||||
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
|
||||
|
||||
test: test.sh
|
||||
test: try.sh
|
||||
./$< || exit 1
|
||||
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ text files that are not code.
|
||||
## Try:
|
||||
|
||||
``` <!---sh-->
|
||||
make test
|
||||
./try.sh
|
||||
```
|
||||
|
||||
NOTE: the program prints an error and exits on the first nesting error so it
|
||||
|
||||
@@ -411,7 +411,7 @@ code</a> below.</p>
|
||||
try <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/incorrect.1.quote.c">incorrect.1.quote.c</a> and the program itself. You may also run it on
|
||||
text files that are not code.</p>
|
||||
<h2 id="try">Try:</h2>
|
||||
<pre><code> make test</code></pre>
|
||||
<pre><code> ./try.sh</code></pre>
|
||||
<p>NOTE: the program prints an error and exits on the first nesting error so it
|
||||
will not detect multiple issues.</p>
|
||||
<h2 id="alternate-code">Alternate code:</h2>
|
||||
@@ -525,7 +525,7 @@ at least two bytes long.</p></li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/anonymous.c">anonymous.c</a> - 1984/anonymous source</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/zeitak.alt.c">zeitak.alt.c</a> - alternate source code</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/zeitak.orig.c">zeitak.orig.c</a> - original source code</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/test.sh">test.sh</a> - test tool</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/try.sh">try.sh</a> - script to try entry</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/correct.java">correct.java</a> - example Java source with correct brace (supposedly :-) )</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/incorrect.1.quote.c">incorrect.1.quote.c</a> - example C source with incorrect quote</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/incorrect.3.quotes.c">incorrect.3.quotes.c</a> - example C source with incorrect quote</li>
|
||||
|
||||
File renamed without changes.
+12
-7
@@ -4744,13 +4744,18 @@ version](%%REPO_URL%%/2012/vik/vik.alt.c) that does this.
|
||||
### Winning entry source code: [zeitak.c](%%REPO_URL%%/2012/zeitak//zeitak.c)
|
||||
</div>
|
||||
|
||||
[Cody](#cody) added the [test.sh](%%REPO_URL%%/2012/zeitak/test.sh) script and the `make test` rule
|
||||
that uses the script along with a number of files that will correctly be flagged
|
||||
as incorrect (including a text file and a java file, with a joke, to show that
|
||||
it's not that it parses C but rather just matching pairs though that's probably
|
||||
obvious) and some correctly nested files were also added including
|
||||
[1984/anonymous](1984/anonymous/index.html) (as the author explicitly mentioned
|
||||
it) and a java file as well with another joke.
|
||||
[Cody](#cody) added the [try.sh](%%REPO_URL%%/2012/zeitak/try.sh) script and the
|
||||
`make test` rule that uses the script along with a number of files that will
|
||||
correctly be flagged as incorrect (including a text file and a Java file, with a
|
||||
joke, to show that it's not that it parses C but rather just matching pairs
|
||||
though that's probably obvious) and some correctly nested files were also added
|
||||
including [1984/anonymous](%%REPO_URL%%/1984/anonymous/index.html) (as the
|
||||
author explicitly mentioned it), both the [original
|
||||
version](%%REPO_URL%%/2012/zeitak/anonymous.alt.c) (.alt.c) and the
|
||||
[modified version](%%REPO_URL%%/2012/zeitak/anonymous.c) that works with macOS
|
||||
as well, and a Java file as well with another joke. Those C files had to be
|
||||
added because each entry has its own tarball and without the files it would
|
||||
break the script.
|
||||
|
||||
A problem was later fixed in the `Makefile` by Cody, a typo in the `CSILENCE`
|
||||
variable that prevented compilation.
|
||||
|
||||
+1
-1
@@ -2857,7 +2857,7 @@
|
||||
2012,zeitak,anonymous.c,40,true,c,true,1984/anonymous source
|
||||
2012,zeitak,zeitak.alt.c,40,true,c,true,alternate source code
|
||||
2012,zeitak,zeitak.orig.c,50,true,c,true,original source code
|
||||
2012,zeitak,test.sh,100,true,shellscript,true,test tool
|
||||
2012,zeitak,try.sh,100,true,shellscript,true,script to try entry
|
||||
2012,zeitak,correct.java,150,false,java,true,example Java source with correct brace (supposedly :-) )
|
||||
2012,zeitak,incorrect.1.quote.c,150,true,c,true,example C source with incorrect quote
|
||||
2012,zeitak,incorrect.3.quotes.c,150,true,c,true,example C source with incorrect quote
|
||||
|
||||
|
Binary file not shown.
@@ -2869,7 +2869,7 @@
|
||||
2012/zeitak/incorrect.single.quote.c
|
||||
2012/zeitak/incorrect.txt
|
||||
2012/zeitak/index.html
|
||||
2012/zeitak/test.sh
|
||||
2012/zeitak/try.sh
|
||||
2012/zeitak/zeitak.alt.c
|
||||
2012/zeitak/zeitak.c
|
||||
2012/zeitak/zeitak.orig.c
|
||||
|
||||
@@ -2869,7 +2869,7 @@
|
||||
2012/zeitak/incorrect.single.quote.c
|
||||
2012/zeitak/incorrect.txt
|
||||
2012/zeitak/index.html
|
||||
2012/zeitak/test.sh
|
||||
2012/zeitak/try.sh
|
||||
2012/zeitak/zeitak.alt.c
|
||||
2012/zeitak/zeitak.c
|
||||
2012/zeitak/zeitak.orig.c
|
||||
|
||||
@@ -1983,7 +1983,7 @@
|
||||
2012/zeitak/incorrect.quote-esc.c
|
||||
2012/zeitak/incorrect.single.quote.c
|
||||
2012/zeitak/incorrect.txt
|
||||
2012/zeitak/test.sh
|
||||
2012/zeitak/try.sh
|
||||
2012/zeitak/zeitak.alt.c
|
||||
2012/zeitak/zeitak.c
|
||||
2012/zeitak/zeitak.orig.c
|
||||
|
||||
Reference in new issue
Block a user