Skip to content

Commit

Permalink
list rej files after patching & add -l to patch
Browse files Browse the repository at this point in the history
  • Loading branch information
gejun committed Nov 3, 2017
1 parent a45df22 commit 345e31e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tools/patch_from_svn
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,11 @@ if [ -z "$DO_RUN" ]; then
EXTRA_ARGS="--dry-run $EXTRA_ARGS"
echo "*** This is a dry-run. To really apply, run: DO_RUN=1 tools/patch_from_svn $1"
fi
patch -p0 -u $EXTRA_ARGS < $MODIFIED_PATCHFILE
patch -p0 -u -l $EXTRA_ARGS < $MODIFIED_PATCHFILE
if [ ! -z "$DO_RUN" ]; then
REJ_FILES=`find . -name "*.rej"`
if [ ! -z "$REJ_FILES" ]; then
echo "==== The patching is not done yet! Apply following rej files manually ===="
echo $REJ_FILES
fi
fi

0 comments on commit 345e31e

Please sign in to comment.