diff options
Diffstat (limited to '')
-rwxr-xr-x | mkdeps.sh | 25 |
1 files changed, 21 insertions, 4 deletions
@@ -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)" |