On 4/6/2010 7:55 AM, Stephan Beal wrote:
On Mon, Apr 5, 2010 at 10:29 PM, Mike Mestnik <[email protected]
<mailto:[email protected]>> wrote:


        @$(PRELFSH)gcc -E -o - - <<'\''EOF'\'' | gcc -x c -o helloworld - \
        #include <stdio.h>\
        int main( int argc, const char* argv[] ) {\
        printf("Hello World!!!\\n");\
        return(0);\
        };\
        EOF$(POSTLFSH)


Can you not output the commands to a temp file and read it in via < ?

At first I believed you, but then I thought about it.

Chicken <- Egg.

You mean with a...
cat <<EOF > blah.tmp
???

I guess I could build this file with a series of printf(s) and echo(s)... Though then I'm back to my first problem and the following would be better...
{ printf "line1\n"; printf "line2\n"; } | cat > blah.tmp
{ printf "line1\n"; printf "line2\n"; } | gcc...

--
----- stephan beal
http://wanderinghorse.net/home/stephan/


--
Mike Mestnik
Technical Team
___
Nagios Enterprises, LLC
Email:  [email protected]
Web:    www.nagios.com


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to