Make executable archive just like Java's .jar archive?

norm norm.rowtree at gmail.com
Fri Sep 13 03:04:00 UTC 2019


On Thursday, 12 September 2019 at 12:52:48 UTC, BoQsc wrote:
> Is there a way to archive multiple .d source code files and 
> make that archive executable, or something similar?

You can achieve something similar with rdmd and shell;

$ tar -zcvf source_files.tar.gz source1.d source2.d ... sourceN.d

$ rdmd $(tar -xvf source_files.tar.gz)


I imagine it wouldn't take much for rdmd to support ZIP or 
tarballs directly but I'm sure there are corner cases to consider.

Bye,
norm


More information about the Digitalmars-d-learn mailing list