From 8445c04999855a92f6c848d9bf58394508ca6f02 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 11 Apr 2025 19:41:28 -0300 Subject: mkdeps.sh: Use single sed to create all file.gz dependencies --- deps.mk | 1 + mkdeps.sh | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/deps.mk b/deps.mk index c20c982..2ae779b 100644 --- a/deps.mk +++ b/deps.mk @@ -832,6 +832,7 @@ src/content/screencasts/index.html: src/content/screencasts/index.htmllisting sr src/content/tils/index.html: src/content/tils/index.htmllisting src/content/tils/index.htmlbody + articles.blog.adoc = \ src/content/blog/2018/07/17/guix-nixos.adoc \ src/content/blog/2018/08/01/npm-ci-reproducibility.adoc \ diff --git a/mkdeps.sh b/mkdeps.sh index a2592e7..55ce0e9 100755 --- a/mkdeps.sh +++ b/mkdeps.sh @@ -47,10 +47,12 @@ files | sed 's/^\(.*\)\.adoc$/\1.htmlbody\t\1.snippets\t\1.conf:\t\1.adoc/' files | sed 's/^\(.*\)\.adoc$/\1.html:\t\1.conf\t\1.htmlbody/' printf '\n' -files | sed 's/^\(.*\)\.adoc$/\1.html.gz:\t\1.html/' -files | sed 's/^\(.*\)\.adoc$/\1.snippets.gz:\t\1.snippets/' -listings | sed 's|^\(.*\)/index\.adoc$|\1/categories.xml.gz:\t\1/categories.xml|' -listings | sed 's|^\(.*\)/index\.adoc$|\1/feed.xml.gz:\t\1/feed.xml|' +{ + files | sed 's/^\(.*\)\.adoc$/\1.html/' + files | sed 's/^\(.*\)\.adoc$/\1.snippets/' + listings | sed 's|^\(.*\)/index\.adoc$|\1/categories.xml|' + listings | sed 's|^\(.*\)/index\.adoc$|\1/feed.xml|' +} | sed 's/^\(.*\)$/\1.gz:\t\1/' printf '\n' files | sed 's/^\(.*\)\.adoc$/\1.updatedat-check:\t\1.conf/' @@ -66,6 +68,7 @@ printf '\n' listings | sed 's/^\(.*\)\.adoc$/\1.htmlheader\t\1.htmlfooter:\t\1.conf/' listings | sed 's/^\(.*\)\.adoc$/\1.html:\t\1.htmlheader\t\1.htmlfooter/' listings | sed 's/^\(.*\)\.adoc$/\1.html:\t\1.htmllisting\t\1.htmlbody/' +printf '\n' for colllink in src/collections/*; do c="$(printf '%s' "$colllink" | normalize)" -- cgit v1.2.3