xorg instructions from LFS CVS

Anderson Lizardo lizardo at linuxfromscratch.org
Sat Oct 2 18:59:10 PDT 2004

On Saturday 02 October 2004 20:01, Randy McMurchy wrote:
> Anderson Lizardo wrote:
> > grep -lr linux/config.h . | xargs sed -i -e '\@#include
> > <linux/config.h>@d'
> >
> > Can someone confirm that this command has the same effect (note that it
> > deletes the line instead of commenting it out, it's simpler IMHO)?
> I am the one that put this sed into the BLFS book. I used the
> replace function of sed, as opposed to the delete function, as
> I don't like removing lines from source files, unless I have to.
> And if I must, then I'll use sed -i.orig to make a backup copy
> of the file. In the case of Xorg and XFree, I wasn't looking to
> to it simpler, I wanted to have the original source available
> by simply removing the comments.

No problem, I was just pragmatic and offered a solution that does exactly what 
it intends to: fix the compilation ;)

You may want to modify the command to whatever you feel is more educational.

Anderson Lizardo

More information about the alfs-discuss mailing list