[PATCH] use patch -i instead of IO redirection
Johannes Stezenbach
js@sig21.net
Tue Oct 30 10:36:00 GMT 2012
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>
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
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list