summaryrefslogtreecommitdiffstats
path: root/support
diff options
context:
space:
mode:
authorLudovic Desroches2012-03-14 16:33:54 +0100
committerPeter Korsgaard2012-03-20 23:51:10 +0100
commit1b671d477bc3154c1c72e2a770b8a97e4566a359 (patch)
tree81caffee4beb41ea0ec82551fa7272609d5adbf6 /support
parentapply-patches.sh: rename targetdir to builddir (diff)
downloadbuildroot-1b671d477bc3154c1c72e2a770b8a97e4566a359.tar.gz
buildroot-1b671d477bc3154c1c72e2a770b8a97e4566a359.tar.xz
buildroot-1b671d477bc3154c1c72e2a770b8a97e4566a359.zip
apply-patches.sh: cleanup
Add quoting and remove redundant command. Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com> Tested-by: Ludovic Desroches <ludovic.desroches@atmel.com> with an armadeus_apf9328_defconfig build Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'support')
-rwxr-xr-xsupport/scripts/apply-patches.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/support/scripts/apply-patches.sh b/support/scripts/apply-patches.sh
index 908ce22ec..c741a6320 100755
--- a/support/scripts/apply-patches.sh
+++ b/support/scripts/apply-patches.sh
@@ -54,8 +54,8 @@ for i in `cd ${patchdir}; ls -d ${patchpattern} 2> /dev/null` ; do
esac fi
echo ""
echo "Applying ${i} using ${type}: "
- echo ${i} | cat >> ${builddir}/.applied_patches_list
- ${uncomp} ${patchdir}/${i} ${uncomp_parm} | ${apply} ${builddir}
+ echo ${i} >> ${builddir}/.applied_patches_list
+ ${uncomp} "${patchdir}/${i}" ${uncomp_parm} | ${apply} "${builddir}"
if [ $? != 0 ] ; then
echo "Patch failed! Please fix $i!"
exit 1