diff options
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-x | Tools/scripts/update-patches | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/scripts/update-patches b/Tools/scripts/update-patches index d5845a87fdc9..c53f0e30060c 100755 --- a/Tools/scripts/update-patches +++ b/Tools/scripts/update-patches @@ -26,7 +26,7 @@ # SUCH DAMAGE. # Find out all .orig files and strip the name to what diff will use -cd $WRKSRC && find . -type f -name '*.orig' | fgrep -v $DISTORIG | \ +cd $PATCH_WRKSRC && find . -type f -name '*.orig' | fgrep -v $DISTORIG | \ sed -e "s,^./\(.*\)\.orig\$,\1," | { while read file do @@ -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 $WRKSRC && diff ${DIFF_ARGS} -u $file.orig $file) } >$i.new + (cd $PATCH_WRKSRC && diff ${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 @@ -66,7 +66,7 @@ do # Build a sensible name for the patch file patchname=patch-`echo $file|sed -e s,/,_,g` echo 1>&2 "No patch-* found for $file, creating $patchname" - (cd $WRKSRC && diff -p ${DIFF_ARGS} -u $file.orig $file) >$patchname + (cd $PATCH_WRKSRC && diff -p ${DIFF_ARGS} -u $file.orig $file) >$patchname edit="$edit $patchname" accounted="$accounted $patchname" done |