>>>>> "Lars" == Lars J Aas <[EMAIL PROTECTED]> writes:

Lars> I'd like to make config.status process a file that is both a
Lars> config header and a config file (do substitutions on both
Lars> @keyword@ and #undef KEYWORD).  Is there a one-step way of doing
Lars> that with config.status, or do I have to make a temporary file?

I'm afraid the latter :)

Hm, but also note that the HEADERS are processed after the FILES, so
you might save one config.status call with something like

        ./config.status --file=out.tmp:output.in  --header=output:out.tmp

Grmph.  I wouldn't depend too much on that.  Actually, it reveals a
bug :)

  --header | --heade | --head | --hea )
    shift
    CONFIG_HEADERS="$CONFIG_FILES $1"
                    ++++++++++++++

But using the envvar it's OK.

~/src/textutils % cat output.in                                  nostromo 17:12
#undef GNU_PACKAGE             
@configure_input@

~/src/textutils % CONFIG_HEADERS="output:out.tmp" CONFIG_FILES="out.tmp:output.in" 
./config.status
creating out.tmp
creating output
~/src/textutils % cat output                                     nostromo 17:12
/* output.  Generated automatically by configure.  */
#define GNU_PACKAGE "GNU textutils"
Generated automatically from output.in by configure.

Reply via email to