summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-04-11 19:41:28 -0300
committerEuAndreh <eu@euandre.org>2025-04-11 19:41:28 -0300
commit8445c04999855a92f6c848d9bf58394508ca6f02 (patch)
treeb1a7dcdbbd7032a1bbe75d7e130a2f6ebd215bd5
parentmkdeps.sh: Use --relative-to flag from realpath to simplify normalize() (diff)
downloadeuandre.org-8445c04999855a92f6c848d9bf58394508ca6f02.tar.gz
euandre.org-8445c04999855a92f6c848d9bf58394508ca6f02.tar.xz
mkdeps.sh: Use single sed to create all file.gz dependencies
-rw-r--r--deps.mk1
-rwxr-xr-xmkdeps.sh11
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)"