On 7/5/07, black hole <[EMAIL PROTECTED]> wrote: > 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") +]
I guess it looks like it ought to work, but it does not. I'll have to reproduce this at home and look at the stack trace to see what I can do. Thanks for the report. - Bruce P.S. a workaround: Inside the template proper, add this: [= (out-move (get "trace-file")) =] Just don't be crossing any file system boundaries.....:) (I use either "rename" or "link" + "unlink") > 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