5 echo "Usage: new-kernel linux-2.4.2-pre2 linux-2.4.3-pre3 linux-2.4.3 patch.gz cvs-dir"
17 echo "directory $1 does not exist"
30 echo "file $1 does not exist"
51 TEMP_PATCH=$(mktemp /tmp/patch-XXXXXX)
52 MY_DIFF="$CURRENT_KERNEL"--"$NEXT_KERNEL"
54 wantdir $CURRENT_KERNEL
59 doit rm -rf $NEXT_KERNEL
60 doit cp -a $BASE_KERNEL $NEXT_KERNEL
61 doit rm -f $TEMP_PATCH
62 doit gunzip < $PATCH_FILE > $TEMP_PATCH
64 doit patch -p1 --dry-run -i $TEMP_PATCH
65 doit patch -p1 -s -i $TEMP_PATCH
69 echo diff -uNrp $CURRENT_KERNEL $NEXT_KERNEL
70 diff -uNrp $CURRENT_KERNEL $NEXT_KERNEL > $MY_DIFF
74 doit patch -p1 --dry-run -s -i ../$MY_DIFF
75 doit patch -p1 -s -i ../$MY_DIFF
76 cvs-take-patch ../$MY_DIFF
77 cvs commit -m "'doing $NEXT_KERNEL'"
80 TAG=$(echo $NEXT_KERNEL | sed -e 's@\.@_@g')