5 echo "This creates a new branch in CVS. Usage: $0 parent child"
11 CHILD=`echo $child | sed -e "s/^b_//" | tr "[a-z]" "[A-Z]"`
17 *) parent="b_$parent" ;;
25 if [ "$parent" != "HEAD" -a "`cat CVS/Tag`" != "T$parent" ]; then
26 echo "This script must be run within the $parent branch"
30 echo parent: $parent CHILD: $CHILD child: $child date: $date
32 echo -n "tagging $parent as '${CHILD}_BASE' ...."
33 $CVS rtag -r $parent ${CHILD}_BASE $module
35 echo -n "branching $child at ${CHILD}_BASE' ...."
36 $CVS rtag -b -r ${CHILD}_BASE $child $module
37 echo -n "updating to $child ...."