Patchwork use patch -i instead of IO redirection

login
register
mail settings
Submitter Johannes Stezenbach
Date Oct. 30, 2012, 10:36 a.m.
Message ID <20121030103620.GB8303@sig21.net>
Download mbox | patch
Permalink /patch/195418/
State Accepted
Commit d1766c2273d1
Headers show

Comments

Johannes Stezenbach - Oct. 30, 2012, 10:36 a.m.
The makes the patch name show up on the command line
logged by CT_DoExecLog so it's easier to see
what is going on.  The -i for patch is specified
by Posix and supported by GNU patch and busybox patch.

Signed-off-by: Johannes Stezenbach <js@sig21.net>


--
For unsubscribe information see http://sourceware.org/lists.html#faq
Yann E. MORIN - Oct. 31, 2012, 12:09 a.m.
Johannes, All,

Your patch:
    scripts/functions: use patch -i instead of IO redirection

has been applied as: #d1766c2273d1
    http://crosstool-ng.org/hg/crosstool-ng/rev/d1766c2273d1

Thank you!

Regards,
Yann E. MORIN.



--
For unsubscribe information see http://sourceware.org/lists.html#faq

Patch

diff -r 9f6e46b6dc42 scripts/functions
--- a/scripts/functions	Tue Oct 30 00:23:51 2012 +0100
+++ b/scripts/functions	Tue Oct 30 11:24:46 2012 +0100
@@ -1051,7 +1051,7 @@ 
             for p in "${d}"/*.patch; do
                 if [ -f "${p}" ]; then
                     CT_DoLog DEBUG "Applying patch '${p}'"
-                    CT_DoExecLog ALL patch --no-backup-if-mismatch -g0 -F1 -p1 -f <"${p}"
+                    CT_DoExecLog ALL patch --no-backup-if-mismatch -g0 -F1 -p1 -f -i "${p}"
                 fi
             done
             if [ "${CT_PATCH_SINGLE}" = "y" ]; then