D for scripting?
Edwin van Leeuwen via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jan 20 07:05:51 PST 2017
On Friday, 20 January 2017 at 03:59:12 UTC, 岩倉 澪 wrote:
> I keep my scripts in ~/scripts so that I can just pull them
> from github and go on my merry way, with symlinks in
> /usr/local/bin, but rdmd doesn't -I the real directory, it does
> -I/usr/local/bin, and if I symlink a script.d as
> /usr/local/bin/script, it can't find the module.
> I can pass -I/home/mio/scripts on the shebang line at least...
FYI dub also has a script option, which would allow you to
include any dub projects in your script, e.g.:
https://github.com/Abscissa/scriptlike/blob/master/USAGE.md#a-basic-script-in-d
Of course then you'd have to turn the included .d files into a
dub project.
More information about the Digitalmars-d
mailing list