X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=build%2Fmerge1.sh;h=cbd32279c7a97d4434a525fbaa461ad266437c9a;hb=fbf357543635d2fb9fa06f20e575e2d908d9d3c8;hp=1fcebec1ae84412699df484431382765c1da768f;hpb=cbb454150790aceec1153749302cb6e8f4449f1d;p=fs%2Flustre-release.git diff --git a/build/merge1.sh b/build/merge1.sh index 1fcebec..cbd3227 100755 --- a/build/merge1.sh +++ b/build/merge1.sh @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/bash -e CONFLICTS=cvs-merge-conflicts CVS="cvs -z3" @@ -14,7 +14,7 @@ if [ -f $CONFLICTS ] ; then fi if [ $# -lt 2 -o $# -gt 3 ]; then - echo "This is phase 1 of merging branches. Usage: $0 parent child [dir]" + echo "This is phase 1 of merging branches. Usage: $0 parent child dir" exit fi @@ -28,7 +28,7 @@ dir=${3:-.} module=$(basename $(<$dir/CVS/Repository)) if [ "$module" = "lustre" ] ; then - echo >&2 "${progname}: You probably want to branch lustre or portals, not the whole tree." + echo >&2 "${progname}: You probably want to merge lustre or portals, not the whole tree." echo >&2 "${progname}: Try using ${0} $parent $child lustre" exit 1 fi @@ -51,6 +51,7 @@ if [ "$child" != "HEAD" -a "`cat $dir/CVS/Tag 2> /dev/null`" != "T$child" ]; the fi TEST_FILE=${TEST_FILE:-ChangeLog} # does this need to be smarter? +[ $dir = "build" ] && TEST_FILE=lbuild check_tag() { [ -z "$1" ] && echo "check_tag() missing arg" && exit3 [ "$1" = "HEAD" ] && return