X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=build%2Fland2.sh;h=ea616a91cde2030194ae42f829430e91ed2abe93;hp=26dce768c9629408dabd2d2ce67280ff438e385d;hb=8233d53e507a7dc247336c319ff80a453bf18207;hpb=c8bfc38359c62cf438fd080491199a24abeea30a diff --git a/build/land2.sh b/build/land2.sh index 26dce76..ea616a9 100755 --- a/build/land2.sh +++ b/build/land2.sh @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/bash -e CVS=cvs @@ -9,6 +9,12 @@ fi . .mergeinfo +if [ "$OPERATION" != "Land" ] ; then + echo "OPERATION must be Land - is $OPERATION" + echo "You should probably be running ${OPERATION}2.sh" + exit +fi + if [ -f "$CONFLICTS" ] ; then echo "$CONFLICTS exists - clean up first" cat $CONFLICTS @@ -18,10 +24,10 @@ fi cvs update $dir 2>&1 | grep "^M" && echo "uncommitted changes" && exit 1 echo -n "Tagging as ${CHILD}_BASE_$date ..." -$CVS tag -F ${CHILD}_BASE_$date $dir +$CVS rtag -r $parent ${CHILD}_BASE_$date $module echo "done" echo -n "Tagging as ${CHILD}_BASE ..." -$CVS tag -F ${CHILD}_BASE $dir +$CVS rtag -F -r $parent ${CHILD}_BASE $module echo "saving .mergeinfo as .mergeinfo-$date" mv .mergeinfo .mergeinfo-$date