aboutsummaryrefslogtreecommitdiff
path: root/src/development/dynmake.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/development/dynmake.sh')
-rwxr-xr-xsrc/development/dynmake.sh42
1 files changed, 39 insertions, 3 deletions
diff --git a/src/development/dynmake.sh b/src/development/dynmake.sh
index 9c60b88..9b74a9f 100755
--- a/src/development/dynmake.sh
+++ b/src/development/dynmake.sh
@@ -56,11 +56,47 @@ assert_arg() {
-printf 'pastebins.md = \\\n'
-find src/content/pastebin -name '*.md' |
+varlist() {
sed -e 's/^/ /' \
-e 's/$/ \\/'
+}
+
+#
+# Pastebins
+#
+
+pastebins() {
+ find src/content/pastebin -name '*.md'
+}
+
+printf 'pastebins.md = \\\n'
+pastebins |
+ varlist
+
printf '\n'
-find src/content/pastebin -name '*.md' |
+pastebins |
sed 's/^\(.*\)\.md$/\1.html: \1.env/'
+
+
+
+#
+# torrent files
+#
+
+torrents() {
+ find resources \
+ -name '*.flac' -or \
+ -name '*.ogg' -or \
+ -name '*.webm'
+}
+
+printf 'torrent-files = \\\n'
+
+torrents |
+ sed 's|$|.torrent|' |
+ varlist
+
+printf '\n'
+
+torrents | awk '{ printf "%s.torrent: %s\n", $0, $0 }'