svn commit: trunk/buildroot/toolchain
Author: ninevoltz
Date: 2008-03-13 10:10:40 -0700 (Thu, 13 Mar 2008) New Revision: 21325
Log:
make patch-kernel create lists of applied patches, very handy indeed
Modified:
trunk/buildroot/toolchain/patch-kernel.sh
Changeset:
Modified: trunk/buildroot/toolchain/patch-kernel.sh
===================================================================
buildroot/toolchain/patch-kernel.sh +1 -0
@@ -37,6 +37,7 @@ esac echo "" echo "Applying ${i} using ${type}: " + echo ${i} | cat >> ${targetdir}/.applied_patches_list ${uncomp} ${patchdir}/${i} | patch -p1 -E -d ${targetdir} if [ $? != 0 ] ; then echo "Patch failed! Please fix $i!"
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"ninevoltz" == ninevoltz <[email protected]> writes:
Hi,
ninevoltz> Author: ninevoltz
ninevoltz> Date: 2008-03-13 10:10:40 -0700 (Thu, 13 Mar 2008) ninevoltz> New Revision: 21325
ninevoltz> Log:
ninevoltz> make patch-kernel create lists of applied patches, very handy indeed
ninevoltz> Modified:
ninevoltz> trunk/buildroot/toolchain/patch-kernel.sh
ninevoltz> Changeset:
ninevoltz> Modified: trunk/buildroot/toolchain/patch-kernel.sh ninevoltz> ===================================================================
ninevoltz> --- trunk/buildroot/toolchain/patch-kernel.sh 2008-03-13 07:38:10 UTC (rev 21324)
ninevoltz> +++ trunk/buildroot/toolchain/patch-kernel.sh 2008-03-13 17:10:40 UTC (rev 21325)
ninevoltz> @@ -37,6 +37,7 @@
ninevoltz> esac
ninevoltz> echo ""
ninevoltz> echo "Applying ${i} using ${type}: " ninevoltz> + echo ${i} | cat >> ${targetdir}/.applied_patches_list
What's the purpose of cat?
Signature · 1 line
Bye, Peter Korsgaard
Quoted 5 lines
What's the purpose of cat?
It prevents the echo from overwriting the last echo, if there are multiple patches.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20080313/eee61580/attachment-0001.htm
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"John" == John Voltz <[email protected]> writes:
John> What's the purpose of cat?
John> It prevents the echo from overwriting the last echo, if there John> are multiple patches.
Huh? Why wouldn't echo ${i} >> ${target_dir}/.patch... work?
Signature · 1 line
Bye, Peter Korsgaard
Geez, I guess it does.
John
Quoted 6 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"John" == John Voltz <[email protected]> writes:
John> What's the purpose of cat?
Quoted 8 lines
John> It prevents the echo from overwriting the last echo, if there John> are multiple patches.
Huh? Why wouldn't echo ${i} >> ${target_dir}/.patch... work?
--
Bye, Peter Korsgaard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20080313/9a5bd651/attachment.htm