From ed5b7a38f85e8e9c41797763f6ebc6423d23173d Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Sun, 27 Nov 2022 23:36:03 -0500 Subject: more --- .gitignore | 1 + Makefile | 8 ++++++++ stream | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 Makefile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2098683 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +install-stamp diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0bcd84c --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +selfpublish != command -v selfpublish.sh || echo sh selfpublish.sh + +all: install-stamp + ./stream + +install-stamp: + sudo $(selfpublish) + touch $@ diff --git a/stream b/stream index 40d57af..d4b3317 100755 --- a/stream +++ b/stream @@ -8,5 +8,5 @@ dashname=dash dashdir=$srvdir/public_html/$dashname sudo mkdir -p "$dashdir" sudo chown "$USER:$GROUP" "$dashdir" -printf '%s\n' "https://$hostname/$dashname" +printf '%s\n' "https://$hostname/$dashname/live.mpd" ./ffmpeg.sh "$dashdir" -- cgit v1.2.3