From: Brian J. Murrell Date: Fri, 21 May 2010 15:06:45 +0000 (-0400) Subject: b=20619 be flexible in version format X-Git-Tag: v1_10_0_43~29 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=2cf2bf049e61b62940379797a4d4cb2e4ba20e3c;p=fs%2Flustre-release.git b=20619 be flexible in version format The version format for the OFED release needs to be more flexible than the previous M.m format that was required. Now it can be any dot-separated format. i.e. 1 or 1.4 or 1.5.1 or 1.5.1.2, etc. Of course, it has to be a valid and unique OFED version (so the "1" example would be a valid version string but invalid because there is no OFED version "1". Ditto for 1.5.1.2 at the time of writing this comment.). i=michael.macdonald i=minh.diep --- diff --git a/build/lbuild b/build/lbuild index 99513c5..f0dfe14 100755 --- a/build/lbuild +++ b/build/lbuild @@ -510,7 +510,7 @@ download_ofed() { daily=${OFED_VERSION##$Mmv-} location="http://www.openfabrics.org/downloads/OFED/ofed-${Mmv}-daily/" # find the filename for the version for the date specified - OFED_VERSION=$(curl -s "$location" | sed -nre "/${daily}-/s/.*href=\"OFED-([0-9]+\.[0-9]+-${daily}-[0-9]{4,4}).tgz.*$/\1/p" | tail -1) + OFED_VERSION=$(curl -s "$location" | sed -nre "/${daily}-/s/.*href=\"OFED-(${Mmv//./\\.}-${daily}-[0-9]{4,4}).tgz.*$/\1/p" | tail -1) if [ -z "$OFED_VERSION" ]; then fatal 1 "Could not determine the filename of the OFED snapshot for ${daily}" fi