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:
parent
43b187a5f8
commit
1895bc9e69
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=228415
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user