Whamcloud - gitweb
landing b_hd_sec, b6818, b7244
[fs/lustre-release.git] / build / land2.sh
1 #!/bin/sh -e 
2
3 CVS=cvs
4
5 if [ ! -f .mergeinfo ] ; then
6     echo ".mergeinfo doesn't exist - exit"
7     exit 
8 fi
9
10 . .mergeinfo
11
12 if [ -f "$CONFLICTS" ] ; then
13     echo "$CONFLICTS exists - clean up first"
14     cat $CONFLICTS
15     exit 
16 fi
17
18 cvs update $dir 2>&1 | grep "^M" && echo "uncommitted changes" && exit 1
19
20 echo -n "Tagging as ${CHILD}_BASE_$date ..."
21 $CVS tag -F ${CHILD}_BASE_$date $dir
22 echo "done"
23 echo -n "Tagging as ${CHILD}_BASE ..."
24 $CVS tag -F ${CHILD}_BASE $dir
25
26 echo "saving .mergeinfo as .mergeinfo-$date"
27 mv .mergeinfo .mergeinfo-$date
28 echo "done"