summaryrefslogtreecommitdiff
path: root/mkdeps.sh
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 /mkdeps.sh
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
Diffstat (limited to 'mkdeps.sh')
-rwxr-xr-xmkdeps.sh11
1 files changed, 7 insertions, 4 deletions
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)"