mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-23 18:41:06 +02:00
use feeds.conf.default if no feeds.conf file exists
This commit is contained in:
parent
7758c61c8b
commit
64df31cf25
@ -10,6 +10,9 @@ DATE=$(date "+%Y-%m-%d")
|
||||
TIME=$(date "+%H-%M-%S")
|
||||
DATE_TIME="${DATE}_${TIME}"
|
||||
|
||||
FEEDS_CONF="feeds.conf.default"
|
||||
test -f "feeds.conf" && FEEDS_CONF="feeds.conf"
|
||||
|
||||
if [ "${0}" != "./scripts/build" ]; then
|
||||
echo "Please call me that way: ./scripts/build"
|
||||
echo " - out of the main directory"
|
||||
@ -75,7 +78,7 @@ if [ "$?" != "0" ]; then
|
||||
fi
|
||||
|
||||
echo "getting version numbers of used repositories..."
|
||||
feeds="$(cat feeds.conf | grep -v -E "^#")"
|
||||
feeds="$(cat "${FEEDS_CONF}" | grep -v -E "^#")"
|
||||
VERSIONS_FILE="xburst/VERSIONS"
|
||||
echo "# base :: 'openwrt' [scm-protocol] [revision] [source] [branch]" > ${VERSIONS_FILE}
|
||||
tmp=($(git show-ref | head -n 1))
|
||||
|
Loading…
x
Reference in New Issue
Block a user