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

+6 -7
View File
@@ -87,7 +87,7 @@ shopt -s globstar # enable ** to match all files and zero or more directories an
# set variables referenced in the usage message
#
export VERSION="1.3 2024-07-23"
export VERSION="1.3.1 2024-07-23"
NAME=$(basename "$0")
export NAME
export V_FLAG=0
@@ -358,19 +358,19 @@ fi
#
export MAKE_FILE="Makefile"
if [[ ! -e $MAKE_FILE ]]; then
echo "$0: ERROR: .top does not exist: $MAKE_FILE" 1>&2
echo "$0: ERROR: Makefile does not exist: $MAKE_FILE" 1>&2
exit 6
fi
if [[ ! -f $MAKE_FILE ]]; then
echo "$0: ERROR: .top is not a regular file: $MAKE_FILE" 1>&2
echo "$0: ERROR: Makefile is not a regular file: $MAKE_FILE" 1>&2
exit 6
fi
if [[ ! -r $MAKE_FILE ]]; then
echo "$0: ERROR: .top is not an readable file: $MAKE_FILE" 1>&2
echo "$0: ERROR: Makefile is not an readable file: $MAKE_FILE" 1>&2
exit 6
fi
if [[ ! -s $MAKE_FILE ]]; then
echo "$0: ERROR: .top is not a non-empty readable file: $MAKE_FILE" 1>&2
echo "$0: ERROR: Makefile is not a non-empty readable file: $MAKE_FILE" 1>&2
exit 6
fi
@@ -536,8 +536,7 @@ if [[ -e $TMP_MAKEFILE ]]; then
echo "$0: ERROR: cannot remove temporary Makefile: $TMP_MAKEFILE" 1>&2
exit 18
fi
echo '# author_handle,entry_id,entry_id,entry_id,…,,,,,,,,,,,,,,,' > \
"$TMP_MAKEFILE"
touch "$TMP_MAKEFILE"
if [[ ! -e $TMP_MAKEFILE ]]; then
echo "$0: ERROR: cannot create temporary Makefile: $TMP_MAKEFILE" 1>&2
exit 19