From 5acefb7898e9350e57b8ee4f1870e2f94f3dcf24 Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Thu, 2 Aug 2012 19:55:11 +0100 Subject: [PATCH] Include script for fetching mux configuration. --- support/getmuxlist | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 support/getmuxlist diff --git a/support/getmuxlist b/support/getmuxlist new file mode 100755 index 00000000..ad0c9064 --- /dev/null +++ b/support/getmuxlist @@ -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