From b3f3928867b3496dd782323ede4bbb1df79cf3ee Mon Sep 17 00:00:00 2001 From: Landon Curt Noll Date: Sat, 28 Jun 2025 21:59:27 -0700 Subject: [PATCH] restore make new_entry in template/Makefile.year for bin/new-dir.sh use --- template/Makefile.year | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/template/Makefile.year b/template/Makefile.year index dcf9771ac..68eca440a 100644 --- a/template/Makefile.year +++ b/template/Makefile.year @@ -286,6 +286,13 @@ genpath: # 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} | ${SED} -e '2,$$s/^/\t/' -e 's/$$/ \\/' -e '$$s/ \\//' + ######################## # extended utility rules