X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustrecvs;h=a76333ee53fa97c55e5ea5226461fae19b2068c1;hb=3c069df3211c0866f5b3eafbac3b8161d286c5c6;hp=b0f80885881fd3b8e3f4a9f3d92af45d560c947f;hpb=efb98ac868f15a8fcb0ff6bc8ca545b26c90ae5c;p=fs%2Flustre-release.git diff --git a/lustrecvs b/lustrecvs index b0f8088..a76333e 100755 --- a/lustrecvs +++ b/lustrecvs @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash LC_COLLATE="C" progname="${0##*/}" @@ -59,6 +59,8 @@ case "$lustretag" in # this is the branch table # keep this list sorted alphabetically! + # These use special build directories + b1_4*) buildtag="b1_4" ;; b_release_1_4_6-patchless) buildtag="b1_4" ;; @@ -66,6 +68,8 @@ case "$lustretag" in b_release*) buildtag=$lustretag ;; + b_uoss) buildtag=$lustretag ;; + # These releases did not get build tagged for them because they # this build system didn't exist when they were tagged v1_2_8|v1_4_0) @@ -122,6 +126,48 @@ cvs_cmd () fi } +hg_cmd () +{ + dir="$1" + base_url="$2" + repository="$3" + + if [ ! "$repository" ]; then + return + fi + + url="$base_url/$repository" + + # create a cvs date format that will survive shell expansion + if [ -n "$pindate" ]; then + datecmd=$(date -u +%s -d "$pindate") + datecmd="-d \"$datecmd 0\"" + else + datecmd="" + fi + + if [ -d "$dir" ]; then + echo "$progname: Updating $dir" + if [ -f "$dir/update.sh" ]; then + ( cd "$dir" && ./update.sh $datecmd ) + else + ( cd "$dir" && hg pull && hg update $datecmd ) + fi + else + echo "$progname: Checking out $dir" + hg clone $url $dir + if [ -f "$dir/setup.sh" ]; then + ( cd "$dir" && ./setup.sh $datecmd ) + else + ( cd "$dir" && hg update $datecmd ) + fi + fi + + if [ $? != 0 ] ; then + error_modules="$dir $error_modules" + fi +} + cvs_cmd build lustre-build "$buildtag" if [ -f build/buildcvs ] ; then