Many updates/fixes to 2018/burton2

This is a big commit but it should complete this entry and 2018 unless I
have missed something.

The make test rule was fixed. A script was not +x.

Renamed freqcount -> freqcount.sh (for browser/display).

Renamed mkkeywords -> mkkeywords.sh (for browser/display).

Renamed runtest -> runtest.sh (for browser/display).

Renamed spotcheck -> spotcheck.sh (for browser/display).

Renamed spotdiff -> spotdiff.sh (for browser/display).

Made tac.man proper man format and renamed tac.1.

Added tokcount.sh - a script that the author included in the remarks but
not in a script.

The renaming of files should be okay including the manifest (it is
believed this is true anyway).

Add try.sh script.

The READ_ME.txt was deleted as it had been renamed to author-README.txt
but the former was never deleted. This file was typo/format checked.

Format/typo check README.md file.
This commit is contained in:
Cody Boone Ferguson committed 2023-12-14 12:14:08 -08:00
1 parent 8cb287d7b8
commit ef88fe9e1c
19 files changed
+380 -333

No files matched your search

+20 -20
View File
@@ -1,14 +1,14 @@
tac comes with a small suite of support programs to test and validate against.
Untar tests and variations in the same dir as the sources,
or change runtest and unob.sh to look elsewhere for the keyword and test files.
or change runtest.sh and unob.sh to look elsewhere for the keyword and test files.
keywords is a critical file, created from ioccc.kw.freq by mkkeywords.
keywords is a critical file, created from ioccc.kw.freq by mkkeywords.sh.
Only ioccc.kw.freq produces results compatible with iocccsize.c;
however, any of the variations can be used instead:
mkkeywords c11 > keywords
mkkeywords.sh c11 > keywords
unob.sh uses the same input file as mkkeywords to control spaces after keywords.
unob.sh uses the same input file as mkkeywords.sh to control spaces after keywords.
The script allows an environment variable, KW, to override this.
Use it simply:
@@ -25,38 +25,38 @@ It does an amazingly good job for such a simple script.
Manifest
prog.c the reason for this README
keywords the file #included in prog.c, output of mkkeywords
mkkeywords reads one of the files from variations, produces string for prog.c
keywords the file #included in prog.c, output of mkkeywords.sh
mkkeywords.sh reads one of the files from variations, produces string for prog.c
ioccc.kw.freq keywords used by iocccsize, sorted by frequency in 201x ioccc winners
unob.sh a more robust unobfuscation script; requires variations/c11 in cur dir
tokenfix patches up prog -t output for ::, >>>, ...
tokenfix.sh patches up prog -t output for ::, >>>, ...
src.doc.txt the answers, or at least significant help
tac.c more clearly written code, offered as a replacement of iocccsize.c
patch fixes single quotes in iocccsize.c, adds #ifndef, removes "I"
fixed_iocccsize.c iocccsize with patch applied, and nop -c argument added
tests/*
runtest script to run the tests; ./runtest | diff results -
runtest.sh script to run the tests; ./runtest.sh | diff results -
results results without -k
results.k results with -k; opt=kcrs ./runtest | diff results.k -
test*.c various test cases looking for compatability
results.k results with -k; opt=kcrs ./runtest.sh | diff results.k -
test*.c various test cases looking for compatibility
iocccbug*.c various test cases demonstrating problems with iocccsize
spotcheck script to test a lot of files vs iocccsize
spotdiff summarize the results of spotcheck, showing only differences
discrepancies text file of the differences found using all the ioccc winning entries
spotcheck.sh script to test a lot of files vs iocccsize
spotdiff.sh summarize the results of spotcheck.sh, showing only differences
discrepancies.md markdown file of the differences found using all the ioccc winning entries
to test prog:
runtest | diff - results
opt=kcrs runtest | diff - results.k
find ~/src/obc -type f -a -name "*.c" | xargs spotcheck prog
[ | spotdiff | diff -bw - discrepancies ]
runtest.sh | diff - results
opt=kcrs runtest.sh | diff - results.k
find ~/src/obc -type f -a -name "*.c" | xargs spotcheck.sh prog
[ | spotdiff.sh | diff -bw - discrepancies ]
to test tac:
prog=tac runtest | diff - results
prog=tac opt=krs runtest | diff - results.k
find ~/src/obc -type f -a -name "*.c" | xargs spotcheck tac
prog=tac runtest.sh | diff - results
prog=tac opt=krs runtest.sh | diff - results.k
find ~/src/obc -type f -a -name "*.c" | xargs spotcheck.sh tac
variations/* as described in the remarks, and in each file below
ansi