build: ensure git submodule with dvb-scan data is updated.

This commit is contained in:
Adam Sutton 2013-01-11 20:50:19 +00:00
parent bb51160721
commit 1de1b68c7e

13
configure vendored
View file

@ -41,6 +41,8 @@ parse_args $*
# Checks
# ###########################################################################
echo "Checking support/features"
#
# Compiler
#
@ -168,6 +170,17 @@ if enabled_or_auto imagecache; then
fi
fi
#
# DVB scan
#
if enabled linuxdvb && enabled dvbscan; then
[ ! -d ${ROOTDIR}/data/dvb-scan/.git ] && rm -rf $ROOTDIR/data/dvb-scan/*
printf "${TAB}" "fetching dvb-scan files ..."
git submodule update --init &> /dev/null\
|| die "failed (use --disable-dvbscan)"
echo "ok"
fi
# ###########################################################################
# Write config
# ###########################################################################