Adjust GetBuildFile() to use correct cgit-URL.

This commit is contained in:
Oliver Tappe 2011-12-01 15:45:48 +01:00
parent 3032f55d28
commit e7be020ce5

@ -399,10 +399,13 @@ function GetBuildFile()
if ! [ -f ${baseDir}/${buildfile} ] ; then if ! [ -f ${baseDir}/${buildfile} ] ; then
echo "Fetching ${buildfile} ..." echo "Fetching ${buildfile} ..."
cd ${baseDir} cd ${baseDir}
local baseURL=http://dev.haiku-os.org/export/ local baseURL=http://cgit.haiku-os.org/haiku/plain
local revision=`uname -v | awk '{print $1}' | sed -e 's/r//'` local revisionTag=`uname -v | awk '{print $1}' | sed -e 's/-.*//'`
local url="${baseURL}${revision}/haiku/trunk/build/jam/${buildfile}" # the sed invocation above drops potential dirty markers off the
wget -q ${url} || ErrorExit "...failed to download $buildfile" # revision tag
local url="${baseURL}/build/jam/${buildfile}?id=${revisionTag}"
wget -q ${url} -O ${buildfile} \
|| ErrorExit "...failed to download $buildfile"
fi fi
} }