From ce66dde468431f013d123b4864f8096799daecce Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Sat, 13 Feb 2010 06:32:12 -0600 Subject: [PATCH] script/gentree: remove .orig files postpatch --- script/gentree | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/script/gentree b/script/gentree index 4b4986e..e3ab050 100755 --- a/script/gentree +++ b/script/gentree @@ -121,6 +121,11 @@ do_patch() { note "... $(basename "${file}")" echo "... $(basename "${file}")" >&2 ( cd "${sroot}" && patch < "${file}" ) || chk + # Remove .orig files + sed -e '/^+++ /!d; s/^+++ //; s/ *.*$//' "${file}" | while read target + do + rm -f "${sroot}/${target}.orig" + done || chk done } -- 2.42.0