xorg instructions from LFS CVS

Randy McMurchy randy at linuxfromscratch.org
Sun Oct 24 14:34:23 PDT 2004

Kevin P. Fleming wrote:
> Jeremy Utley wrote:
>> The command giving me fits is this:
>> *sed -i -e "s@#include <linux/config.h>@/* #include <linux/config.h> 
>> */@" \
>> `grep -lr linux/config.h *`*
> Jeremy, are you still using a patch for this, or did you find another 
> solution?
> I agree that it would be nice to find some ALFS-language that could do 
> this, so that it would continue to work properly for future X.org 
> releases, but I too cannot find a simple way to do it.
> Anderson's suggestion about feeding the output of grep into xargs is 
> useful, because it does avoid the backtick substitution problem.

If it's the backticks causing issue, couldn't you replace the
backticks with $(command) syntax?

Something like this:

sed -i -e "s@#include <linux/config.h>@/* & */@" $(grep -lr linux/config.h *)


More information about the alfs-discuss mailing list