scripts/functions: use patch -i instead of IO redirection
authorJohannes Stezenbach <js@sig21.net>
Tue Oct 30 00:36:20 2012 +0000 (2012-10-30)
changeset 3096d1766c2273d1
parent 3095 ee3bc44bf7f9
child 3097 5c67476c7342
scripts/functions: use patch -i instead of IO redirection

This 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>
[yann.morin.1998@free.fr: remove now-useless debug message]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <20121030103620.GB8303@sig21.net>
Patchwork-Id: 195418
scripts/functions
     1.1 --- a/scripts/functions	Tue Oct 30 22:40:48 2012 +0100
     1.2 +++ b/scripts/functions	Tue Oct 30 00:36:20 2012 +0000
     1.3 @@ -1050,8 +1050,7 @@
     1.4          if [ -n "${d}" -a -d "${d}" ]; then
     1.5              for p in "${d}"/*.patch; do
     1.6                  if [ -f "${p}" ]; then
     1.7 -                    CT_DoLog DEBUG "Applying patch '${p}'"
     1.8 -                    CT_DoExecLog ALL patch --no-backup-if-mismatch -g0 -F1 -p1 -f <"${p}"
     1.9 +                    CT_DoExecLog ALL patch --no-backup-if-mismatch -g0 -F1 -p1 -f -i "${p}"
    1.10                  fi
    1.11              done
    1.12              if [ "${CT_PATCH_SINGLE}" = "y" ]; then