mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-02 22:11:07 +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")
|
TIME=$(date "+%H-%M-%S")
|
||||||
DATE_TIME="${DATE}_${TIME}"
|
DATE_TIME="${DATE}_${TIME}"
|
||||||
|
|
||||||
|
FEEDS_CONF="feeds.conf.default"
|
||||||
|
test -f "feeds.conf" && FEEDS_CONF="feeds.conf"
|
||||||
|
|
||||||
if [ "${0}" != "./scripts/build" ]; then
|
if [ "${0}" != "./scripts/build" ]; then
|
||||||
echo "Please call me that way: ./scripts/build"
|
echo "Please call me that way: ./scripts/build"
|
||||||
echo " - out of the main directory"
|
echo " - out of the main directory"
|
||||||
@ -75,7 +78,7 @@ if [ "$?" != "0" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "getting version numbers of used repositories..."
|
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"
|
VERSIONS_FILE="xburst/VERSIONS"
|
||||||
echo "# base :: 'openwrt' [scm-protocol] [revision] [source] [branch]" > ${VERSIONS_FILE}
|
echo "# base :: 'openwrt' [scm-protocol] [revision] [source] [branch]" > ${VERSIONS_FILE}
|
||||||
tmp=($(git show-ref | head -n 1))
|
tmp=($(git show-ref | head -n 1))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user