]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Include script for fetching mux configuration.
authorAdam Sutton <dev@adamsutton.me.uk>
Thu, 2 Aug 2012 18:55:11 +0000 (19:55 +0100)
committerAdam Sutton <dev@adamsutton.me.uk>
Tue, 14 Aug 2012 19:02:38 +0000 (20:02 +0100)
support/getmuxlist [new file with mode: 0755]

diff --git a/support/getmuxlist b/support/getmuxlist
new file mode 100755 (executable)
index 0000000..ad0c906
--- /dev/null
@@ -0,0 +1,26 @@
+#!/bin/bash
+#
+# Retrieve the latest dvb-apps scan files
+#
+
+URL=http://linuxtv.org/hg/dvb-apps/archive/tip.tar.bz2
+TMP=/tmp/getmuxlist.$$
+TVH=$(cd $(dirname $0)/..; pwd)/data/dvb-scan
+
+# Get files
+rm -rf $TMP
+mkdir -p $TMP
+cd $TMP
+curl $URL | tar xj
+cd dvb-apps*
+
+# Copy to TVH
+rm -rf $TVH
+mkdir -p $TVH
+mv ./util/scan/* $TVH
+
+# Cleanup
+for f in $TVH/*; do
+  [ -f $f ] && rm -f $f
+done
+rm -rf $TMP