diff --git a/2012/zeitak/.entry.json b/2012/zeitak/.entry.json index 9e3321746..59c865475 100644 --- a/2012/zeitak/.entry.json +++ b/2012/zeitak/.entry.json @@ -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", diff --git a/2012/zeitak/Makefile b/2012/zeitak/Makefile index 893853a56..436355a7d 100644 --- a/2012/zeitak/Makefile +++ b/2012/zeitak/Makefile @@ -137,7 +137,7 @@ all: data ${TARGET} ${PROG}: ${PROG}.c ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} -test: test.sh +test: try.sh ./$< || exit 1 diff --git a/2012/zeitak/README.md b/2012/zeitak/README.md index 4eb75f96c..b447b9883 100644 --- a/2012/zeitak/README.md +++ b/2012/zeitak/README.md @@ -22,7 +22,7 @@ text files that are not code. ## Try: ``` - make test + ./try.sh ``` NOTE: the program prints an error and exits on the first nesting error so it diff --git a/2012/zeitak/index.html b/2012/zeitak/index.html index b8e8c0328..64e500e2f 100644 --- a/2012/zeitak/index.html +++ b/2012/zeitak/index.html @@ -411,7 +411,7 @@ code below.

try incorrect.1.quote.c and the program itself. You may also run it on text files that are not code.

Try:

-
    make test
+
    ./try.sh

NOTE: the program prints an error and exits on the first nesting error so it will not detect multiple issues.

Alternate code:

@@ -525,7 +525,7 @@ at least two bytes long.

  • anonymous.c - 1984/anonymous source
  • zeitak.alt.c - alternate source code
  • zeitak.orig.c - original source code
  • -
  • test.sh - test tool
  • +
  • try.sh - script to try entry
  • correct.java - example Java source with correct brace (supposedly :-) )
  • incorrect.1.quote.c - example C source with incorrect quote
  • incorrect.3.quotes.c - example C source with incorrect quote
  • diff --git a/2012/zeitak/test.sh b/2012/zeitak/try.sh similarity index 100% rename from 2012/zeitak/test.sh rename to 2012/zeitak/try.sh diff --git a/thanks-for-help.md b/thanks-for-help.md index 25e5dce10..23d2db993 100644 --- a/thanks-for-help.md +++ b/thanks-for-help.md @@ -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) -[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. diff --git a/tmp/manifest.csv b/tmp/manifest.csv index 98f3eb78e..6ce06e8e3 100644 --- a/tmp/manifest.csv +++ b/tmp/manifest.csv @@ -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 diff --git a/tmp/manifest.numbers b/tmp/manifest.numbers index ac7d54443..ef56c8584 100644 Binary files a/tmp/manifest.numbers and b/tmp/manifest.numbers differ diff --git a/tmp/path_list.found.txt b/tmp/path_list.found.txt index 8458cbf32..11df5d3b6 100644 --- a/tmp/path_list.found.txt +++ b/tmp/path_list.found.txt @@ -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 diff --git a/tmp/path_list.manifest.txt b/tmp/path_list.manifest.txt index 8458cbf32..11df5d3b6 100644 --- a/tmp/path_list.manifest.txt +++ b/tmp/path_list.manifest.txt @@ -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 diff --git a/tmp/path_list.required.txt b/tmp/path_list.required.txt index e9e048b4a..ffd63ff46 100644 --- a/tmp/path_list.required.txt +++ b/tmp/path_list.required.txt @@ -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