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

rfc: extended shebang expansion

hi there,

trying to keep two separat html-trees (one local, one for uploading), i
figured it'd be nice to have one more macro for the shebang line (besides %DIR
and %BASE, so let's call it %PATH) which extends to a previously defined
environment variable (let's say, WMLOUTPATH).

having changed wml's source code by adding the line

543|	$opts =~ s|%PATH|$ENV{WMLOUTPATH}|sg;

and having exported WMLOUTPATH=/somepath, then with the line

#!wml -o %PATH/something.html

we'd get the file /somepath/something.html.

now isn't that nice or what?



 Clemens Oertel            http://www.oertel.ch            <clemens@oertel.ch>

Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com