tvheadend/support/getmuxlist
Andrew C. Martin 9b385a78c5 allow build path spaces in support scripts
- allow build path spaces in configure & support scripts
- use the same die function for all scripts
2013-03-07 20:44:55 -07:00

20 lines
368 B
Bash
Executable file

#!/bin/bash
#
# Fetch DVB scan files
#
# Arguments
DIR=$1
[ -z "$DIR" ] && DIR=$(dirname "$0")/../data/dvb-scan
# Update
if [ -d "${DIR}/.git" ]; then
(cd "${DIR}"; git pull) &> /dev/null
# Fetch
elif [ ! -d "${DIR}" ]; then
URL=git://linuxtv.org/dtv-scan-tables.git
git clone $URL "${DIR}" &> /dev/null
fi
# Note: will not update existing set (if not .git)