Hi,

I am trying to specify the output file name inside the pseudo macro
using the get autogen scheme function. I understand the docs that
it should be possible, but I somehow can't get it right.

This is the definitions file (trace.ag):
autogen definitions trace.tpl;
trace_file=trace.h;

This is the template file (trace.tpl):
[+ autogen5 template h=(get "trace_file") (setenv "SHELL" "/bin/sh") +]

Running `autogen --trace=everything trace.ag' produces:
eval from file agInit.c line 124:
(debug-enable 'backtrace)
eval from file trace.tpl line 1:
(get "trace_file")
eval from file trace.tpl line 1:
(setenv "SHELL" "/bin/sh")
Error in template trace.tpl, line -1
        fserr 2: cannot create :  No such file or directory
AutoGen aborting on signal 11 (Segmentation fault) in state ABORTING

I am using autogen version 5.8.8.

blackhole

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Autogen-users mailing list
Autogen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/autogen-users

Reply via email to