From cd7605eb926773e29b9192ee1c9dc4a12d2f6881 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 30 Mar 2025 09:53:41 -0300 Subject: src/content/security.txt: Derive it --- .gitignore | 1 + Makefile | 9 +++++++++ src/content/security.txt | 1 - 3 files changed, 10 insertions(+), 1 deletion(-) delete mode 120000 src/content/security.txt diff --git a/.gitignore b/.gitignore index 0325f3d..8bc0d52 100644 --- a/.gitignore +++ b/.gitignore @@ -19,4 +19,5 @@ feed.xml /expiry.txt /install.html.txt /install.src.txt +/src/content/security.txt /src/content/.well-known/ diff --git a/Makefile b/Makefile index 3a15506..71acf31 100644 --- a/Makefile +++ b/Makefile @@ -108,6 +108,8 @@ contents.gz = \ contents = \ $(dynamic-contents) \ $(static-contents) \ + src/content/security.txt \ + src/content/security.txt.gz \ all-contents = \ $(contents) \ @@ -133,6 +135,8 @@ derived-assets = \ email.txt \ baseurl.txt \ expiry.txt \ + src/content/security.txt \ + src/content/security.txt.gz \ src/content/.well-known/security.txt \ install.html.txt \ install.src.txt \ @@ -188,6 +192,11 @@ expiry.txt: src/content/public.asc awk -F: '/^pub:/ { print $$7 }' | \ xargs -I% date -Is -d@% > $@ +src/content/security.txt.gz: src/content/.well-known/security.txt.gz +src/content/security.txt: src/content/.well-known/security.txt +src/content/security.txt src/content/security.txt.gz: + ln -fs .well-known/$(@F) $@ + src/content/.well-known/security.txt.gz: src/content/.well-known/security.txt src/content/.well-known/security.txt: email.txt baseurl.txt expiry.txt mkdir -p $(@D) diff --git a/src/content/security.txt b/src/content/security.txt deleted file mode 120000 index abdf74b..0000000 --- a/src/content/security.txt +++ /dev/null @@ -1 +0,0 @@ -.well-known/security.txt \ No newline at end of file -- cgit v1.2.3