diff options
author | EuAndreh <eu@euandre.org> | 2024-11-18 08:51:06 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-11-18 08:51:06 -0300 |
commit | 7be5dafd1f6c4511bef3731e9f4b18c347dfb5c4 (patch) | |
tree | c8630c164847010dc76d0937162ee4f2b33d658a /mkdeps.sh | |
parent | Trim edges; simplify (diff) | |
download | papo.im-7be5dafd1f6c4511bef3731e9f4b18c347dfb5c4.tar.gz papo.im-7be5dafd1f6c4511bef3731e9f4b18c347dfb5c4.tar.xz |
mkdeps.sh: Add missing dependencies to index.htmldeps and feed.xmldeps
Diffstat (limited to 'mkdeps.sh')
-rwxr-xr-x | mkdeps.sh | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -22,6 +22,11 @@ listings() { find src/collections/*/index.adoc | normalize } +extras() { + find src/content/ -type f \ + -name '*.tar.gz' +} + files() { pages articles @@ -34,6 +39,7 @@ articles | varlist 'articles.adoc' listings | varlist 'listings.adoc' listings | sed 's|/index\.adoc$|/feed.xml|' | varlist 'feeds.xml' find src/content/img/ -name '*.svg' | varlist 'images.svg' +extras | varlist 'sources.extras' files | sed 's/^\(.*\)\.adoc$/\1.htmlbody\t\1.snippets\t\1.conf:\t\1.adoc/' @@ -55,10 +61,16 @@ for colllink in src/collections/*; do printf '\n\n' name="$(basename "$c")" find "$c"/*/ -type f -name '*.adoc' | varlist "articles.$name.adoc" - printf \ - 'articles.%s.sortdata = $(articles.%s.adoc:.adoc=.sortdata)\n' \ - "$name" "$name" + printf 'articles.%s.%s = $(articles.%s.adoc:.adoc=.%s)\n' \ + "$name" 'sortdata ' "$name" 'sortdata' + printf 'articles.%s.%s = $(articles.%s.adoc:.adoc=.%s)\n' \ + "$name" 'indexentry' "$name" 'indexentry' + printf 'articles.%s.%s = $(articles.%s.adoc:.adoc=.%s)\n' \ + "$name" 'feedentry ' "$name" 'feedentry' + + printf '%s/index.htmldeps: $(articles.%s.indexentry)\n' "$c" "$name" + printf '%s/feed.xmldeps: $(articles.%s.feedentry)\n' "$c" "$name" printf '%s/index.htmldeps %s/feed.xmldeps: $(articles.%s.sortdata)\n' \ "$c" "$c" "$name" |