diff options
| author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2024-03-01 19:19:06 +0100 |
|---|---|---|
| committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2025-06-15 01:30:23 +0200 |
| commit | 7cb145b2d54fcdf934d0c470ce490ab9318e5b31 (patch) | |
| tree | 220fedde008a9732958cb8be8e7728e3ade28cd8 /Makefile | |
| parent | 77685b747a4ae18be0a28201092f586faad5904e (diff) | |
| download | haunt-blog-7cb145b2d54fcdf934d0c470ce490ab9318e5b31.tar.gz haunt-blog-7cb145b2d54fcdf934d0c470ce490ab9318e5b31.tar.bz2 haunt-blog-7cb145b2d54fcdf934d0c470ce490ab9318e5b31.zip | |
Automatize haunthtml2wordpress.py.
Without that, on another computer with Parabola, we end up with a
</div> line being printed at the end. So we need a more reliable
process and this is done by using guix shell with a fixed revision.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -19,14 +19,14 @@ BLOG_URL ?= https://blog.replicant.us/page GUILE_PATCH = v1-0001-SRFI-19-Add-support-for-ISO-8601-zones-with-a-col.patch GUIX_COMMIT ?= b25b94335a3ee8d68d2145da8e5ea0325ecea451 GUIX_SHELL ?= guix time-machine --commit=$(GUIX_COMMIT) -- shell -C -GUIX_CONVERT_PACKAGES ?= python python-beautifulsoup4 python-html2text python-sh +GUIX_PYTHON_PACKAGES ?= python python-beautifulsoup4 python-html2text python-sh -CONVERT ?= $(GUIX_SHELL) $(GUIX_CONVERT_PACKAGES) -- python3 convert.py +CONVERT ?= $(GUIX_SHELL) $(GUIX_PYTHON_PACKAGES) -- python3 convert.py HAUNT ?= $(GUIX_SHELL) --with-patch=guile=patches/$(GUILE_PATCH) haunt -- haunt SENTINEL = -.PHONY: all build help serve +.PHONY: all build generate-wordpress-articles help serve PAGES = \ wordpress/pages/replicant_blog_page_8.html \ @@ -51,6 +51,12 @@ wordpress/pages: wordpress/pages/replicant_blog_page_%.html: wordpress/pages $(CURL) $(BLOG_URL)/$(subst replicant_blog_page_,,$*)/ -o $@ +generate-wordpress-articles: build + $(GUIX_SHELL) $(GUIX_PYTHON_PACKAGES) \ + -- \ + python3 haunthtml2wordpress.py \ + ./site/replicant-status-and-report-of-the-37c3-and-fosdem-2024-conferences.html + links.txt: $(PAGES) @echo -n '' > $@ @for f in $(PAGES) ; do \ |
