summaryrefslogtreecommitdiff
path: root/mkdeps.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-04-29 09:00:07 -0300
committerEuAndreh <eu@euandre.org>2025-04-29 09:02:25 -0300
commit7904f2d53602222940db0898c2dc2fcadf8f4e5f (patch)
tree91958973dfe8599e622e7307d286a57796598165 /mkdeps.sh
parentMakefile: Reify $(captured-assets) into variable (diff)
downloadeuandre.org-7904f2d53602222940db0898c2dc2fcadf8f4e5f.tar.gz
euandre.org-7904f2d53602222940db0898c2dc2fcadf8f4e5f.tar.xz
Makefile: Support flac -> ogg conversion and torrent file generation
Diffstat (limited to 'mkdeps.sh')
-rwxr-xr-xmkdeps.sh25
1 files changed, 21 insertions, 4 deletions
diff --git a/mkdeps.sh b/mkdeps.sh
index 96fb138..5a9ae5d 100755
--- a/mkdeps.sh
+++ b/mkdeps.sh
@@ -24,11 +24,23 @@ categories() {
find src/collections/*/categories.adoc | normalize
}
+media() {
+ find src/content/ \( -type f -and \! -type l \) -and \( \
+ -name '*.flac' -or \
+ -name '*.ogg' -or \
+ -name '*.webm' \
+ \)
+}
+
+tarballs() {
+ find src/content/ \( -type f -and \! -type l \) -and \( \
+ -name '*.tar.gz' \
+ \)
+}
+
extras() {
- find src/content/ -type f \
- -name '*.flac' -or \
- -name '*.webm' -or \
- -name '*.tar.gz'
+ media
+ tarballs
}
listings() {
@@ -49,6 +61,8 @@ categories | varlist 'categories.adoc'
indexes | varlist 'indexes.adoc'
indexes | sed 's|/index\.adoc$|/feed.xml|' | varlist 'feeds.xml'
find src/content/img/ -name '*.svg' | varlist 'images.svg'
+media | varlist 'sources.media'
+tarballs | varlist 'sources.tarballs'
extras | varlist 'sources.extras'
@@ -80,6 +94,9 @@ 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'
+media | sed 's/\(.*\)$/\1.torrent:\t\1/'
+printf '\n'
+
for colllink in src/collections/*; do
c="$(printf '%s' "$colllink" | normalize)"