Write a new script to calculate next Sunday's date

This commit is contained in:
Eryn Wells 2024-06-03 07:55:36 -07:00
parent e2d64f82f8
commit 7843ee9cdd
2 changed files with 33 additions and 1 deletions

View file

@ -36,7 +36,7 @@ nethack-commit: $(NETHACK_LOGFILE_DATA_FILE)
weeknotes: YEAR=$(shell date '+%Y')
weeknotes: WEEK_NUMBER=$(shell date '+%V')
weeknotes: UPCOMING_SUNDAY=$(shell date -v +Sun +%FT%T%z)
weeknotes: UPCOMING_SUNDAY=$(shell scripts/next_sunday.py)
weeknotes: PAGE_PATH=blog/$(YEAR)/weeknotes-$(YEAR)w$(WEEK_NUMBER).md
weeknotes: $(CONTENT_PATH)/$(PAGE_PATH)
hugo new -k weeknotes --clock "$(UPCOMING_SUNDAY)" -c "$(CONTENT_PATH)" "$(PAGE_PATH)"