[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
new flag? wml -U
- From: Jan Holler <nospam@thanx>
- Date: Thu, 16 Aug 2001 16:18:44 +0200 (CEST)
I suggest to implement a flag -U to undefine previously with
-D defined variables.
Reason:
There is no way to unset such a variable as it is
possible within a file with <set-var> ... <unset-var foo>
e.g. if in an upper .wmlrc is -D BAR="foo" (since we need it
there) and in a lower (cd into some subdir) .wmlrc we would
not want 'BAR' to be set, we cannot use such a construct
because 'BAR' is set und 'newbar' will never be $(WML_SRC_BASENAME):
<if <var-exists BAR>
<set-var newbar=<get-var bar>> # or $(BAR) instead of <get-var bar>
<set-var newbar=$(WML_SRC_BASENAME)>
>
Cheers!
-jan
______________________________________________________________________
Website META Language (WML) www.engelschall.com/sw/wml/
Official Support Mailing List sw-wml@engelschall.com
Automated List Manager majordomo@engelschall.com