aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-06-01 20:33:47 -0300
committerEuAndreh <eu@euandre.org>2022-06-01 20:33:51 -0300
commitd42d6fc45f50a09d36d912c0d68ee0794ac1e520 (patch)
treec1d2dfc0dccd5438892b83e4099868552f1a917d /src
parentsrc/development/frontmatter-env.sh: Use single quote for heredoc marker (diff)
downloadeuandre.org-d42d6fc45f50a09d36d912c0d68ee0794ac1e520.tar.gz
euandre.org-d42d6fc45f50a09d36d912c0d68ee0794ac1e520.tar.xz
Move files.mk and deps.mk into generated.mk
Make torrent files dynamic instead of listed in Makefile.
Diffstat (limited to '')
-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 }'