home *** CD-ROM | disk | FTP | other *** search
/ ftp.parl.clemson.edu / 2015-02-07.ftp.parl.clemson.edu.tar / ftp.parl.clemson.edu / pub / pvfs2 / orangefs-2.8.3-20110323.tar.gz / orangefs-2.8.3-20110323.tar / orangefs / maint / pvfs2-mergebug < prev    next >
Text File  |  2005-01-17  |  855b  |  40 lines

  1. #!/bin/sh
  2. # given a bug number (bugzilla.mcs.anl.gov) for which we previously created a
  3. # branch, merge that branch back into HEAD
  4.  
  5. CVSROOT=${CVSROOT:-:ext:$USER@cvs.parl.clemson.edu:/projects/cvsroot}
  6. PROJECT=pvfs2-1
  7.  
  8. usage="usage: $0 <-d CVSROOT> BUGNUMBER"
  9. example="example: $0 66"
  10.  
  11. if [ $# -lt 1 ]; then
  12.     echo $usage
  13.     echo $example
  14.     exit -1
  15. fi
  16.  
  17. while getopts "d:" options; do
  18.     case $options in
  19.         d) CVSROOT=$OPTARG;;
  20.         *) 
  21.             echo $usage
  22.             echo $example
  23.             exit -1;
  24.             ;;
  25.     esac
  26. done
  27.  
  28. shift $(($OPTIND - 1))
  29.  
  30. # check out fresh copy of HEAD of project.  we'll merge the branch into this
  31. # working copy
  32. cvs -d $CVSROOT checkout -d pvfs2-HEAD $PROJECT
  33. cd pvfs2-HEAD
  34.  
  35. # perform the merge.  TODO: make sure conflicts get flagged somehow
  36. cvs update -j pvfs2-bugfix-$1
  37.  
  38. echo "Merge from branch into HEAD complete.  Check for conflicts and commit when done"
  39.  
  40.