[Gllug] GNU make expert question: write variable value to a file
Richard W.M. Jones
rich at annexia.org
Wed Mar 12 08:23:26 UTC 2003
On Tue, Mar 11, 2003 at 09:17:33PM +0000, Nix wrote:
> OK; your shell trick below seems the best method to use (except that
> you meant $(foo), of course).
>
> > #!/bin/sh
> > cat <<EOF
> > $foo
> > EOF
> >
> > This does work but isn't acceptable because the variable in question
> > is very large, and so overflows the environment for this and every
> > other process that the Makefile runs.
> >
> > Ideas???
>
> Use `unexport'; there's no need to pass big variables down at all.
Problem is that if I unexport the variable the shell trick doesn't work
because the variable isn't exported to the shell.
Rich.
--
Richard Jones, Red Hat Inc. (London, UK) http://www.redhat.com/software/ccm
http://www.annexia.org/ Freshmeat projects: http://freshmeat.net/users/rwmj
PTHRLIB is a library for writing small, efficient and fast servers in C.
HTTP, CGI, DBI, lightweight threads: http://www.annexia.org/freeware/pthrlib/
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list