You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
787 B
33 lines
787 B
15 years ago
|
#!/bin/sh
|
||
|
# Backport the last change in HEAD, to a branch.
|
||
|
# Usage: cvsbackport <files>
|
||
|
# WARNING: the branch tag is hardcoded into the script, make sure to check it!
|
||
|
#
|
||
|
# Initial author: Dirk Mueller
|
||
|
# Support for multiple command-line arguments: David Faure
|
||
|
|
||
|
BRANCH=KDE_3_4_BRANCH
|
||
|
echo "Backporting to $BRANCH"
|
||
|
TMPFILE=`mktemp cvsbackport.XXXXXX` || exit 1
|
||
|
files=$*
|
||
|
until test $# -eq 0; do
|
||
|
|
||
|
echo "looking for last change to $1..."
|
||
|
CVSLASTCHANGE_KEEP_WHITESPACE=1 cvslastchange $1 > $TMPFILE
|
||
|
echo "browsing last change to $1..."
|
||
|
less $TMPFILE
|
||
|
cvs up -r$BRANCH $1
|
||
|
patch < $TMPFILE
|
||
|
rm -f $TMPFILE
|
||
|
echo "showing diff for $1..."
|
||
|
cvs diff $1 | less
|
||
|
|
||
|
shift
|
||
|
done
|
||
|
|
||
|
echo "Press ENTER now to commit ($files) or Ctrl+C to abort"
|
||
|
read confirm
|
||
|
|
||
|
cvs commit $files
|
||
|
cvs up -A $files
|