use include 1337.mk to hold 1337 hacker rulz

Updated 1337 hacker rulz to version 7.

Added `1337.mk` to contain the updated 1337 hacker rulz (v7).

We use an optional include of `1337.mk` (or `../1337.mk`,
or `../../1337.mk`) to include the 1337 hacker rulz.

Changed `make deep_magic` to `make more_magic`.

Changed `bin/tar-entry.sh` VERSION from "1.3.7 2024-07-22"
to "1.3.8 2024-07-23".

Changed `bin/tar-year.sh` VERSION from "1.2.5 2024-07-22"
to "1.2.6 2024-07-23".

Add `make new_entry` to `YYYY/Makefile` and `template/Makefile.year`.

Change `make new_year` to use `sort -n -u`.

Made minor debug message fixes to `bin/new-year.sh`.

Changed `bin/new-year.sh` VERSION from "1.3 2024-07-23"
to "1.3.1 2024-07-23".

Improved `bin/add-dir.sh` to update `YYYY/Makefile` with
the new entry directory name.

Changed `bin/add-dir.sh` VERSION from "1.0 2024-07-21"
to "1.1 2024-07-23".

Performed `make www` to accomplish the above and to test under macOS.
This commit is contained in:
Landon Curt Noll committed 2024-07-23 22:45:16 -07:00
1 parent 16c33c5f2f
commit dbf6921b3a
355 files changed
+2153 -24306

No files matched your search

+22 -8
View File
@@ -16,7 +16,7 @@
#
################################################################################
#
# This file is Copyright (c) 2023 by Landon Curt Noll. All Rights Reserved.
# This file is Copyright (c) 2024 by Landon Curt Noll. All Rights Reserved.
# You are free to share and adapt this file under the terms of this license:
#
# Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
@@ -41,8 +41,10 @@ include ../var.mk
# IOCCC entries
###############
#
ENTRIES= akari blakely borsanyi dlowe eastman fredriksson goren hamaji hou \
konno richards toledo vik zucker
# BEGIN - DO NOT REMOVE THIS LINE - make new_entry uses this line #
ENTRIES= akari blakely borsanyi dlowe eastman fredriksson goren \
hamaji hou konno richards toledo vik zucker
# END - DO NOT REMOVE THIS LINE - make new_entry also uses this #
YEAR= 2011
@@ -66,7 +68,7 @@ all:
.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
clean clobber install genpath love haste waste maker \
easter_egg sandwich supernova deep_magic magic charon pluto
easter_egg sandwich supernova more_magic magic charon pluto
# alternative executable
#
@@ -278,10 +280,22 @@ genpath:
@echo '=-=-= IOCCC complete make $@ =-=-='
##################
# 133t hacker rulz
##################
#############################################################
# NOTE: 'Don't Panic' if you don't understand the stuff below
#############################################################
# add ${NEW_ENTRY} to the list of ${ENTRIES} and output Makefile lines to set updated ${ENTRIES} value
#
new_entry:
@(echo 'ENTRIES= '; \
(echo ${ENTRIES} ${NEW_ENTRY}) | ${TR} ' ' '\012' | ${SORT} -d -u) | \
${FMT} -p | ${SED} -e '2,$$s/^/\t/' -e 's/$$/ \\/' -e '$$s/ \\//'
##################
# 1337 hacker rulz
##################
love:
@echo '=-=-= ${YEAR} begin make $@ =-=-='
@echo
@@ -369,7 +383,7 @@ supernova:
done
@echo '=-=-= ${YEAR} complete make $@ =-=-='
deep_magic:
more_magic:
@echo '=-=-= ${YEAR} begin make $@ =-=-='
@echo
@for i in ${ENTRIES}; do \