Feb 27, 2007 #1 drimades IS-IT--Management Joined Nov 8, 2004 Messages 221 Location MK Can someone explain what the following does? sed -i -e "s@^#include <linux/config.h>@/* & */@" \ `grep -lr linux/config.h *` && ( make World 2>&1 | tee xorg-compile.log && exit $PIPESTATUS )
Can someone explain what the following does? sed -i -e "s@^#include <linux/config.h>@/* & */@" \ `grep -lr linux/config.h *` && ( make World 2>&1 | tee xorg-compile.log && exit $PIPESTATUS )
Feb 27, 2007 #2 ilovecocks IS-IT--Management Joined Jan 11, 2006 Messages 35 Location DK Looks like somekind of script generator. do a man sed and maybe there is a man page about it Upvote 0 Downvote
Feb 27, 2007 #3 stanhubble MIS Joined Apr 6, 2001 Messages 1,052 Location CA for each file that has linux/config.h in it substitute /* & */ for any string #include <linux/config.h> that is at the beginning of the line. if that completed successfully run make World and pipe the output to stdout and to a logfile if that completed successfully exit with an error level of $PIPESTATUS Upvote 0 Downvote
for each file that has linux/config.h in it substitute /* & */ for any string #include <linux/config.h> that is at the beginning of the line. if that completed successfully run make World and pipe the output to stdout and to a logfile if that completed successfully exit with an error level of $PIPESTATUS