diff options
author | John Ankarström <john@ankarstrom.se> | 2021-06-24 19:00:28 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-06-24 19:00:28 +0200 |
commit | 05bc72a4c1de4ab2024fa4134cd4825801461e5f (patch) | |
tree | eaafa5a221e455bf1649564b53fec89a78cbbd37 | |
parent | 71a90d55f7797d504970c691213f2fd48bb8ab54 (diff) | |
download | patches-05bc72a4c1de4ab2024fa4134cd4825801461e5f.tar.gz |
undopatch: Fix typo
-rw-r--r-- | README | 2 | ||||
-rwxr-xr-x | undopatch | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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. @@ -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 |