diff options
author | EuAndreh <eu@euandre.org> | 2025-03-07 08:18:27 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2025-03-07 08:22:46 -0300 |
commit | 1d05f385b2876bc54589f55d2cb10ba3499dfdc3 (patch) | |
tree | da0e17de418638ca47417eec615987ec8c1726fc | |
parent | bin/: Have video(1) for standalone screencasts and live(1) based on it (diff) | |
download | dotfiles-1d05f385b2876bc54589f55d2cb10ba3499dfdc3.tar.gz dotfiles-1d05f385b2876bc54589f55d2cb10ba3499dfdc3.tar.xz |
bin/{live,process}: Assume we're already inside live/
-rwxr-xr-x | bin/live | 2 | ||||
-rwxr-xr-x | bin/process | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -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 }' } |