Warning, file /sdk/kde-dev-scripts/cvsforwardport was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 #!/bin/sh
0002 # Forwardport the last change in a branch to HEAD
0003 # Usage: cvsforwardport <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 "Forwardporting to HEAD"
0011 TMPFILE=`mktemp cvsforwardport.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 -A $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 -r $BRANCH $files