Chris Staub wrote:
> On 11/19/2009 07:51 PM, Bruce Dubbs wrote:
>> The problem is that find is returning a full path. That will copy all
>> files to /usr/include. You would have to parse each line of the find
>> output to remove the path before the current directory.
>>
>> We now do:
>>
>> make INSTALL_HDR_PATH=dest headers_install
>> cp -rv dest/include/* /usr/include
>>
>> Why not just add one line:
>>
>> make INSTALL_HDR_PATH=dest headers_install
>> rm dest/include/linux/.*install*
>> cp -rv dest/include/* /usr/include
>>
>> That removes it before copying to /usr/include.
>>
> But there are the ".install" files in every subdir, not just in the
> "linux" dir. I use:
>
> find dest/include -name .install -or -name ..install.cmd | xargs rm -fv
Ahh. I didn't realize they were in multiple directories.
find dest/include -name .install -or -name ..install.cmd -exec rm -v
'{}' \;
would also work. The -f is not needed to rm. All the files are owned
by the user and have 0664 permissions.
Also, I wouldn't bother to remove these extraneous file in Chapter 5 as
the whole /tools directory can be deleted after Chapter 6 is done.
-- Bruce
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page