[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: "wmk -a" and auto-adjusted variables?

On Thu, Jul 08, 1999 at 10:26:09PM +0200, Stefan `Sec` Zehl wrote:
> On Thu, Jul 08, 1999 at 03:01:33PM -0500, plonka@doit.wisc.edu wrote:
> > I'm having some trouble with "wmk -a" when I use auto-adjusted variables
> > such as "-DIMG~images".  It seems that wmk prevents these auto-adjusted
> > relative paths from working as desired.
> [...]
> >    $ wmk -a -DIMG~images
> My suggestion is to write this into ./.wmlrc
> There it works perfectly and is automatically picked up by all
> subdirectories.
> this is my .wmlrc in my html-root:
> -DBASE_URL=http://www.42.org/~sec/

Thanks, that does work for me and is a potential workaround.

In this instance however, it's less desirable than being able to use just
command-line switches.  Since I'm invoking wmk from another Makefile, I'd
like that Makefile to be self-contained (i.e. not to be reliant on the
content of the ".wmlrc").

It's surprising that putting "-DIMG~images" on the wmk command line is
different than putting it in the ".wmlrc" file.  No?

I'm thinking that perhaps:
1) wmk should not chdir around as it invokes wml, or should have a new
   mode that causes it not to chdir.
- or -
2) The wmk man page should document the issue that "-D~value" on the
   wmk command-line won't have the same effect as passing it to wml
   directly (if wml had been invoked from the same dir) or specifying
   it in an rc file.

If anyone else agrees, I'm willing to submit a change for one of these
options...  It might keep someone else from similarly spending quite some
time trying to figure that out.


plonka@doit.wisc.edu  http://net.doit.wisc.edu/~plonka  ARS:N9HZF  Madison, WI
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com