399 Commits
Author SHA1 Message Date
Cody Boone Ferguson 1d86daf19a Change LIBS to LDFLAGS in Makefiles
This is to make it more standard which further allows one to run make on
some other source code, say because they want to try and fix an entry
but forget to update the Makefile. Or if they're the author they can not
worry about it in some cases. But since LDFLAGS is the standard way it
seems better to have the LIBS variable in the Makefile be LDFLAGS.

Maybe there is a reason to not have this and I'm happy to close this in
that case but it does seem better this way so I'm doing this commit.
2023-07-10 03:33:53 -07:00
Cody Boone Ferguson b6330673cc Restore silencing warnings in macOS
As besides the entries that are not supposed to compile/cannot compile
due to architectural limitations all the entries can compile in macOS
(though some do not work - yet(? I have plans to work on more later)) it
was not necessary to not silence the warnings after all as the entries
that don't work will be easy to identify ('they don't work' :-) ) so I
can just do make CSILENCE= all in the directory of those entries which
solves the problem I had originally thought of.

Some of the Makefiles have retained other changes I had to make
yesterday to get the entries to work with clang in linux but most of
them were either not changed or were made better with the rollback of
the commit that originally silenced warnings.

Now work on silencing warnings for linux can be done.
2023-07-08 05:05:50 -07:00
Cody Boone Ferguson d89305ef3b Mass .gitignore update for .orig.c files
Due to the fact we now have .orig.c files and thus the possibility of
winner.orig or prog.orig being built I have updated all the .gitignore
files so that these files ignored. This was done with the following
shell commands, for reference:

    for i in $(find 19* 200* 201[0123] -mindepth 2 -maxdepth 2 -name .gitignore) ; do echo $(dirname "$i"|sed -e 's,[0-9]\{4\}/,,g').orig >> "$i"; done
    for i in $(find 201[4-9] 2020 -mindepth 2 -maxdepth 2 -name .gitignore) ; do echo prog.orig >> "$i"; done

and the two commands is because it was only in 2014 that the winning
entries were renamed to prog so prog.orig is the correct glob.
2023-07-08 04:39:42 -07:00
Landon Curt Noll 2aa99f0644 revert commit d8425bb767 2023-07-07 05:36:08 -07:00
Landon Curt Noll d8425bb767 silence warnings under macOS for cc, clang and gcc
Used the following script to check for warnings
not silenced via ${CSILENCE}:

```sh
find ???? -mindepth 1 -maxdepth 1 -type d | while read dir; do
(cd "$dir"; echo =-=-= "$dir" =-=-= ; csilence -v 1 clobber all ; echo ; csilence -v 1 clobber alt)
done 2>&1 | less
```
2023-07-07 01:11:22 -07:00
Landon Curt Noll 2ba12ecc3c restore *.orig.c to each entry
Under each yyyy/dir there is a file of the form '*.orig.c'
containing the original source code, or as close as we can
get to the original source code.
2023-07-06 21:49:38 -07:00
Cody Boone Ferguson fe45336fb3 Add back data files for 2012/grothe
It seems it was a mistake to remove them. Running make on a system that
hasn't already built the program fails due to missing files.
2023-07-06 11:10:34 -07:00
Cody Boone Ferguson 2ae35e6847 Add -lm to 2012/blakely/Makefile
Not all systems implicitly link in libm so this is necessary for those
systems.
2023-07-06 11:06:45 -07:00
Cody Boone Ferguson e05ab1c10c Add -lm to 2012/endoh1/Makefile
Not all systems implicitly link in libm so this is necessary for those
systems.
2023-07-06 11:03:54 -07:00
Landon Curt Noll ac41f07a83 move fix thanks a file, update top level html links, rename CONTRIBUTING.md
The fix thank you's have been moved from `README.md` to
`thanks-for-fixes.md`.

**WARNING**: Some mistakes may have been made in doing this.
We presume later changes by others will correct any issues.

The `CONTRIBUTING.md` was renamed `how-to-enter.md`.

A 3rd line of links was added to top level html such as
`contact.html`, `index.html`, `judges.html`, `winners.html`,
and `years.html`.

Improved blank line use in a number (but not all) `README.md` files.
2023-06-06 16:59:53 -07:00
Cody Boone Ferguson 7dbb9fc2fe Change 'tri-graphs' to 'trigraphs' - it's one word
The is a file excluded from this commit that has had the change because
there are other changes but the file is incomplete. That file will be
committed when the fixes are complete which will happen at a later date.
2023-06-05 05:52:57 -07:00
Landon Curt Noll f46e68740f Deprecate twitter
We further deprecate the use of twitter.

In cases such as historic guidelines and rules, we add
a note about using Mastodon.

In cases where a tweet URL was used, we replace with
an Internet Archive link because twitter has announced
that accounts that are not used for a period of time
will be deleted.

We add a few missing deprecated_twitter information
to the author.numbers and author.cvs files.

We remove references to twitter handles (after making
sure that both author.numbers and author.cvs has the
deprecated_twitter information).  When the "_README.md_"
files have their header information generated by
a tool, such deprecated_twitter data will not be present.
2023-05-24 16:50:01 -07:00
Cody Boone Ferguson 887d13e847 Fix 2012/tromp compilation
Here too I forgot to update the DATA variable in the Makefile after
renaming a file (to be a markdown file).
2023-05-15 10:04:17 -07:00
Landon Curt Noll 5927927e51 Add .id to all winning entries 2023-05-13 11:45:33 +10:00
Landon Curt Noll c69445d067 Add .top and .year files
This will be used by tools that will build the web site
and tools that form JSON files (such as `.winner.json').
2023-05-12 20:10:38 +10:00
Cody Boone Ferguson 648dd200bd Expand try section in 2012/kang/README.md
Added some German to try and also asked some questions both about German
as well as one about Spanish. This (and in particular the German) was
prompted by a brief dialogue in GitHub.
2023-05-11 02:52:47 -07:00
Cody Boone Ferguson 847ccdc232 Update David Lowe URL
I know that in bugs.md there is a missing URL for him or at least about
one of the entries but I'll have to look at that later. It might be that
it should stay there as it was a website for the entry itself and it
would be nice to have it back but for now this is unaddressed.
2023-05-10 09:49:30 -07:00
Cody Boone Ferguson ff1080459a Add author GitHub spoiler in 2012/kang 2023-05-08 04:40:56 -07:00
Cody Boone Ferguson 1a785f5cf0 Add link and minor format update to 2012/zeitak 2023-05-06 06:15:34 -07:00
Cody Boone Ferguson 242726870a Update 2012/tromp
Format and typo fix README.md.

Un-rot13 the how13 and make it how.md. The reversal of rot13 was
discussed on GitHub at Landon's request.

One link was fixed.

Added other links. I was sorely tempted to make two links for garbage
collector, garbage == Windows and collector == the actual garbage
collector :-) but I decided that that's not my place so I didn't do it
as much as I wanted to (and I dearly wanted to!).

In some places there probably should be links again but since they were
linked to earlier in the document I'm going to pass on it for now.

I believe but am not certain that with this commit with the exception of
2012/README.md that 2012 is finished at least with format fixes in
README.md files (unless I come across something when trying out the
entries later on).
2023-05-06 06:09:42 -07:00
Cody Boone Ferguson 87daf5d056 Format fix 2012/omoikane/README.md 2023-05-05 10:13:07 -07:00
Cody Boone Ferguson 555bd89a4b Format fix 2012/hou/README.md + update .gitignore 2023-05-05 10:01:47 -07:00
Cody Boone Ferguson ad03952dd3 Format and typo fix 2012/konno/README.md 2023-05-05 05:19:40 -07:00
Cody Boone Ferguson 68068d4e5f Add link to and format fix 2012/kang/README.md
Link was also added to winners.{html,csv}.

Found via his email address - I checked to see if the domain was valid
(or at least attempted to) and saw it's their website.
2023-05-04 11:22:24 -07:00
Cody Boone Ferguson 21428fa40b Format fix 2012/hamano/README.md 2023-05-04 10:29:23 -07:00
Cody Boone Ferguson 3753579f6b Format and link fix 2012/grothe/README.md
I should point out that I'm unclear on one thing. It seems vague or
cryptic but this might very well be because I've not yet tried the entry
- it is about the usage of the program. I will try it after I finish the
remaining README.md files. Hopefully it'll be clearer at this point.
2023-05-04 10:19:28 -07:00
Cody Boone Ferguson ec1dd1c85d Format fix 2012/vik/README.md + add alt code
Based on the author's description I made an alt version that should
theoretically work in Windows though of course (thank goodness) I have
no way to actually test it.

Just like with 2011/vik I've only done this because part of issue #1 is
to make entries work on as many systems as possible though it's not
entirely clear to me that 'Windows' should even be considered a 'system'
at all let alone one worthy of consideration :-)

Updated .gitignore.
2023-05-04 10:08:19 -07:00
Cody Boone Ferguson 3b0e5d8e22 Format fix 2012/zeitak/README.md 2023-05-04 06:46:07 -07:00
Cody Boone Ferguson f05d4a3533 Format fix 2012/endoh2/README.sh + update try
The try section now has a new script 'everything.sh' which runs make
everything and then runs (with less) every executable so the user can
more easily see exactly what it does.
2023-05-04 05:14:24 -07:00
Cody Boone Ferguson 5d41e20499 Format fix + update try in 2012/endoh1/README.md
The coloured version (endoh1_color.c) was not suggested in the try
section and I think that's a shame so I remedied that.

Updated .gitignore with a file referenced by the judges (that probably
will never exist but nonetheless is referenced).

Format fix README.md.
2023-05-03 11:15:33 -07:00
Cody Boone Ferguson 00c5eed72d Format fix 2012/dlowe/README.md 2023-05-03 10:28:18 -07:00
Cody Boone Ferguson a65c28df54 Updates to 2012/deckmyn
Format fixes in README.md. It should be noted that in at least
deckmyn.md I was unclear about some things. It appeared the author was
using regexps but some of it looked off so I might have improperly
placed '`'s. I also am not remotely familiar with music theory or even
the terms so I could have easily missed something. I'd certainly welcome
a musician looking at and if necessary fixing it!

Renamed MANUAL to deckmyn.md.

Updated .gitignore.

Typo fixes.
2023-05-03 10:20:14 -07:00
Cody Boone Ferguson 6ab1d60c1f Format fix 2012/blakely/README.md
Also updated .gitignore.
2023-05-03 09:51:15 -07:00
Cody Boone Ferguson 382cc698ec Add mastodon handle to all Yusuke Endoh entries
This was easy with my sgit tool which I didn't think about until shortly
after the previous commit (20edd11936).
2023-04-28 05:25:24 -07:00
Cody Boone Ferguson 5b25b77c9b Add colon to 'To run' lines
Or else add an ostomy :-).

Some README.md files have severe ulcerative colitis and will need a
colectomies but others are missing colons. These will be discovered and
fixed in time. In the meantime I've restored some functionality for
these poor README.md files by giving them an ostomy.
2023-04-14 06:37:31 -07:00
Cody Boone Ferguson 4bf3f302cb 'comments' -> 'remarks' in all README.md files
As in

    sgit -e 's/\([Aa]uthor.*\)comments/\1remarks/g' -e 's/\([Jj]udge.*\)comments/\1remarks/g' '*README.md'
2023-04-10 11:01:39 -07:00
Cody Boone Ferguson e09f677b37 Mass typo fix (all README.md and Makefiles)
As in

    sgit -e 's/the terms this license/the terms of this license/g' '*/Makefile' '*/README.md'
2023-04-02 09:27:13 -07:00
Cody Boone Ferguson e805f41d34 Mass fixes to headers in README.md files
There were many many README.md files with the wrong heading level for
different sections. These have been changed.

To help go through the changes it should be noted I used sgit and also
here is what is changed:

The 'Try', 'To build' and 'To run' lines have two '#'s. Some had one and
others had three.

An exception is that in 1984/anonymous/README.md for the alternative
code that had three '#'s. This is not consistent yet and it might be
that only two are desired. But for now that one at least has three.
2023-03-31 06:43:59 -07:00
Cody Boone Ferguson db90bf6a86 Minor updates to several README.md files
Just some formatting fixes and in some cases add links to XQuartz for
macOS Mountain Lion and beyond. More entries (probably many more) have
to have that link added but those will be found and fixed in time.
2023-03-31 06:37:18 -07:00
Landon Curt Noll 350da723cc improve architecture and Optimization comments in Makefiles 2023-03-26 22:13:13 -07:00
Landon Curt Noll 1ce40b273d fix alt rules in Makefiles
For Makefiles that have alt related rules, moved
the related rules under the alt rule section.

In some cases where there is no alt code,
removed alt rules and/or targets.
2023-03-26 21:48:48 -07:00
Landon Curt Noll 1c35dc3b47 make everything true :-)
Add @${TRUE} as an action for the everything rule in Makefiles.
2023-03-26 20:47:04 -07:00
Landon Curt Noll e42d7484cd trim comments and update 133t hacker rulz in Makefiles 2023-03-26 20:24:16 -07:00
Landon Curt Noll 1b1dd2f2e4 put all README.md files under CC BY-SA 4.0 License
This will make is easier for others to share README.md
files while requiring them to attribute the file
when using it.
2023-03-26 02:58:27 -07:00
Landon Curt Noll ea1806abdb change Makefiles to look under X11_INCDIR and X11_INCDIR/X11 2023-03-26 02:22:49 -07:00
Landon Curt Noll 5fc2d72dd1 change use of ${HOMEBREW_PREFIX} with ${SDL2_CONFIG} 2023-03-26 02:19:18 -07:00
Landon Curt Noll 8cd2aa85c1 clean up and improve end of Makefile rules 2023-03-26 02:02:31 -07:00
Landon Curt Noll d04e6d8f03 remove X11_LIBDIR and X11_INCDIR setting from Makefiles
The X11_LIBDIR and X11_INCDIR values are now set in the
top level `var.mk` file.
2023-03-26 00:50:47 -07:00
Landon Curt Noll bbd18a20df improve Makefile headers
Simply the Makefile header.

Refer to the //www.ioccc.org/bugs.md URL (that will eventually exist).

Now using CC BY-SA 4.0 License to how you may share and adapt the
Makefile.
2023-03-25 23:51:14 -07:00
Cody Boone Ferguson dbc6a3b812 Remove data files from 2012/grothe
These files are generated based on data from /dev/urandom and are
example uses. As anyone running this entry in a copy of the repo (fork
or otherwise) would get that the files are modified in git status (after
running the example commands) it seems to me that they should be deleted
and added to .gitignore which I have now done.

My guess (but it's just a guess) is that when the repo was set up these
commands were run and perhaps a git add . was done from the root
directory.
2023-03-25 06:26:12 -07:00