Aaron Turner wrote: > Was this intentional?
I remember now! My thinking was that if a file name was relative, then it was relative to current working directory. A better assumption is relative to the current file's directory. (It's been some years since I grubbed around in that code.) > If not, is there a workaround? Anything you pick is going to have some grunge. Here's some uglitude for you: > #shell > > cd plugins > egrep -v '^#include' plugin_opts.def > list=`egrep '^#include' plugin_opts.def | awk '{print $2}'` > for f in $list ; do cat $f ; done > > #endshell and, of course, loose the "#include plugins/plugin_opts.def" line. Alternatively, your make rule can: > dlist=`find plugins -type f -name '*opts.def' | \ > while read d ; do echo \`dirname $d\` ; done | \ > sort -u` > > autogen `for d in $dlist ; do echo -L $d ; done` program_opts.def They're both fighting hard for their hack level. I consider it a design bug. It should have been treated like ``#include "foo.h"'' instead of ``#include <bar.h>''. I'm under day job pressure, so it may be a little time. (If you're excited enough to take a gander, tpLoad.c contains findFile(). Perhaps give it another argument like, "referring file name" that can be used in some reasonable way. The INCLUDE template macro would need to pass in a referring file also.) What would the rules be? Obviously, a leading '/' implies a full path. Also, a leading '$' implies an environment variable (or program directory name for "$$/" prefix). Either of these disallow directory search lists. Should "./" be special? e.g. only use the referring file name or getcwd() if there is no referring file? Cheers - Bruce BTW, after adding a comment about you having the email problem, I found this in my in basket. It looks like you got through and got a bounce message to boot. Not real swift. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Autogen-users mailing list Autogen-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/autogen-users