aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-03-07 08:18:27 -0300
committerEuAndreh <eu@euandre.org>2025-03-07 08:22:46 -0300
commit1d05f385b2876bc54589f55d2cb10ba3499dfdc3 (patch)
treeda0e17de418638ca47417eec615987ec8c1726fc
parentbin/: Have video(1) for standalone screencasts and live(1) based on it (diff)
downloaddotfiles-1d05f385b2876bc54589f55d2cb10ba3499dfdc3.tar.gz
dotfiles-1d05f385b2876bc54589f55d2cb10ba3499dfdc3.tar.xz
bin/{live,process}: Assume we're already inside live/
-rwxr-xr-xbin/live2
-rwxr-xr-xbin/process6
2 files changed, 4 insertions, 4 deletions
diff --git a/bin/live b/bin/live
index f452144..ba21fe7 100755
--- a/bin/live
+++ b/bin/live
@@ -1,7 +1,7 @@
#!/bin/sh
set -eu
-DIR="live/data/$(timestamp)"/"$(now)"
+DIR="data/$(timestamp)"/"$(now)"
mkdir -p "$DIR"
cd "$DIR"
diff --git a/bin/process b/bin/process
index 7e0c814..fa96ef5 100755
--- a/bin/process
+++ b/bin/process
@@ -36,12 +36,12 @@ EOF
}
mpds() {
- find live/data/*/*/live.mpd | LANG=POSIX.UTF-8 sort
+ find data/*/*/live.mpd | LANG=POSIX.UTF-8 sort
}
mkdeps() {
mpds | varlist 'sources.mpd'
- mpds | cut -d/ -f1-3 | sed 's,$,/combined.webmx,' | uniq |
+ mpds | cut -d/ -f1-2 | sed 's,$,/combined.webmx,' | uniq |
varlist 'combined.webmx'
printf '\n'
@@ -50,7 +50,7 @@ mkdeps() {
printf '\n'
mpds | sed 's/\.mpd$/.webm/' | awk -F/ '{
- printf "live/data/%s/combined.webmx:\t%s\n", $3, $0
+ printf "data/%s/combined.webmx:\t%s\n", $2, $0
}'
}