D for scripting?

Kagamin via Digitalmars-d digitalmars-d at puremagic.com
Fri Jan 20 04:06:32 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...

You can symlink ~/scripts to /usr/local/bin/scripts and 
-I/usr/local/bin/scripts and keep all files with .d extensions 
there, create only symlinks in bin without extensions.


More information about the Digitalmars-d mailing list