summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@cryptonomic.net>2022-11-27 23:36:03 -0500
committerAndrew Cady <d@cryptonomic.net>2022-11-27 23:36:03 -0500
commited5b7a38f85e8e9c41797763f6ebc6423d23173d (patch)
treeeab0004c5b77382923f2df84c8610f7b233298a1
parenta6e27250654746ced5dfc659ca7f49a383d95ac9 (diff)
more
-rw-r--r--.gitignore1
-rw-r--r--Makefile8
-rwxr-xr-xstream2
3 files changed, 10 insertions, 1 deletions
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 @@
1selfpublish != command -v selfpublish.sh || echo sh selfpublish.sh
2
3all: install-stamp
4 ./stream
5
6install-stamp:
7 sudo $(selfpublish)
8 touch $@
diff --git a/stream b/stream
index 40d57af..d4b3317 100755
--- a/stream
+++ b/stream
@@ -8,5 +8,5 @@ dashname=dash
8dashdir=$srvdir/public_html/$dashname 8dashdir=$srvdir/public_html/$dashname
9sudo mkdir -p "$dashdir" 9sudo mkdir -p "$dashdir"
10sudo chown "$USER:$GROUP" "$dashdir" 10sudo chown "$USER:$GROUP" "$dashdir"
11printf '%s\n' "https://$hostname/$dashname" 11printf '%s\n' "https://$hostname/$dashname/live.mpd"
12./ffmpeg.sh "$dashdir" 12./ffmpeg.sh "$dashdir"