File indexing completed on 2024-12-15 05:11:24

0001 #!/bin/sh
0002 # Backport the last change in HEAD, to a branch.
0003 # Usage: cvsbackport <files>
0004 # WARNING: the branch tag is hardcoded into the script, make sure to check it!
0005 #
0006 # Initial author: Dirk Mueller
0007 # Support for multiple command-line arguments: David Faure
0008 
0009 BRANCH=KDE_3_4_BRANCH
0010 echo "Backporting to $BRANCH"
0011 TMPFILE=`mktemp cvsbackport.XXXXXX` || exit 1
0012 files=$*
0013 until test $# -eq 0; do
0014 
0015   echo "looking for last change to $1..."
0016   CVSLASTCHANGE_KEEP_WHITESPACE=1 cvslastchange $1 > $TMPFILE
0017   echo "browsing last change to $1..."
0018   less $TMPFILE
0019   cvs up -r$BRANCH $1
0020   patch < $TMPFILE
0021   rm -f $TMPFILE
0022   echo "showing diff for $1..."
0023   cvs diff $1 | less
0024 
0025   shift
0026 done
0027 
0028 echo "Press ENTER now to commit ($files) or Ctrl+C to abort"
0029 read confirm
0030 
0031 cvs commit $files
0032 cvs up -A $files