1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

Use diff -p both when first creating and when updating a patch.

Previously a patch created by update-patches would be changed again
by the next update-patches run.
This commit is contained in:
Christian Weisgerber 2009-02-15 16:16:33 +00:00
parent 43b187a5f8
commit 1895bc9e69
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=228415

View File

@ -47,7 +47,7 @@ do
# found it, splice before diff part with diff
esc=`echo $file | sed -e 's,/,\\\\/,g'`
{ sed -e "/^--- $esc.orig/,\$ d" <$i
(cd $PATCH_WRKSRC && diff ${DIFF_ARGS} -u $file.orig $file) } >$i.new
(cd $PATCH_WRKSRC && diff -p ${DIFF_ARGS} -u $file.orig $file) } >$i.new
# did it change ? mark it as changed
if diff ${DIFF_ARGS} -u --ignore-matching-lines="^--- $file.orig .*" \
--ignore-matching-lines="^+++ $file .*" $i $i.new 1>&2