Dan Nicholson <dbn.lists <at> gmail.com> writes: > On 9/25/06, Matthew Burgess <matthew <at> linuxfromscratch.org> wrote: > > > > What about something like: > > > > tar -xf linux-2.6.18.x.tar.bz2 > > cd linux-2.6.18.x > > mkdir /tools/tmp > > make mrproper > > make headers_check # For testing > > make INSTALL_HDR_PATH=/tools/tmp headers_install > > cp -R /tools/tmp/include/* /tools/include > > rm -r /tools/tmp
I realize that this is coming in a bit late, but instead of three lines to get around the 'rm -rf' you could have two via sed and remove the following line: > $(Q)rm -rf $(INSTALL_HDR_PATH)/include cp Makefile{,.orig} sed '/PATH)\/include/d' Makefile.bak > Makefile If you don't like the above approach, then I suggest we put in an explanation as to why we install to a temporary directory first and add the '-v' flag to the cp command. Also, as an aside, it might be nice to go into a little more explanation as to what is meant by a 'sanitized header' on that page. -- JH -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page