From 05bc72a4c1de4ab2024fa4134cd4825801461e5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Thu, 24 Jun 2021 19:00:28 +0200 Subject: undopatch: Fix typo --- README | 2 ++ undopatch | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README b/README index 13f65cb..f688585 100644 --- a/README +++ b/README @@ -46,6 +46,8 @@ files from the downloaded archive. It is not reliable to restore the original files using the .orig files, as multiple patches may have been applied to the same file. +You can use the undopatch script to automate this. + = Rebuilding with new patch = First, you may want to undo the old patches as described above. diff --git a/undopatch b/undopatch index 0112101..e46bc54 100755 --- a/undopatch +++ b/undopatch @@ -22,5 +22,5 @@ cmd=echo\ cp [ x"$1" = x"-x" ] && cmd=cp || echo '(preview, no -x)' 1>&2 find . -name '*.orig' | while read f; do f=${f%.orig} - $cmd $w/${f#work/} $f + $cmd $(dirname $w)/${f#./work/} $f done -- cgit v1.2.3