diff options
author | EuAndreh <eu@euandre.org> | 2025-04-11 19:41:28 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2025-04-11 19:41:28 -0300 |
commit | 8445c04999855a92f6c848d9bf58394508ca6f02 (patch) | |
tree | b1a7dcdbbd7032a1bbe75d7e130a2f6ebd215bd5 | |
parent | mkdeps.sh: Use --relative-to flag from realpath to simplify normalize() (diff) | |
download | euandre.org-8445c04999855a92f6c848d9bf58394508ca6f02.tar.gz euandre.org-8445c04999855a92f6c848d9bf58394508ca6f02.tar.xz |
mkdeps.sh: Use single sed to create all file.gz dependencies
-rw-r--r-- | deps.mk | 1 | ||||
-rwxr-xr-x | mkdeps.sh | 11 |
2 files changed, 8 insertions, 4 deletions
@@ -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 \ @@ -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)" |