Re: Install multiple executables with DUB

2020-09-17 Thread glis-glis via Digitalmars-d-learn
On Tuesday, 8 September 2020 at 08:41:24 UTC, glis-glis wrote: Following the advice of drug, I moved the "tools" folder from src to the parent directory, added a dependency to "biophysics" with path ".." and build the binaries with "dub build --single tools/..." This works fine, however, n

Re: Install multiple executables with DUB

2020-09-08 Thread glis-glis via Digitalmars-d-learn
Thanks everybody! My folder structure looks like this: . ├── bin ├── dub.sdl ├── src │   ├── biophysics │ │ └── ... │   └── tools │ │ └── ... └── test ├── ... Following the advice of drug, I moved the "tools" folder from src to the parent directory, added a dependency to "biophysics

Re: Install multiple executables with DUB

2020-09-04 Thread Jon Degenhardt via Digitalmars-d-learn
On Friday, 4 September 2020 at 07:27:33 UTC, glis-glis wrote: On Thursday, 3 September 2020 at 14:34:48 UTC, Jacob Carlborg wrote: Oh, multiple binaries, I missed that. You can try to add multiple configurations [1]. Or if you have executables depending on only one source file, you can use sing

Re: Install multiple executables with DUB

2020-09-04 Thread WebFreak001 via Digitalmars-d-learn
On Thursday, 3 September 2020 at 08:22:25 UTC, glis-glis wrote: Hi, I have a few modules for parsing different file formats and a folder with d-scripts using these parsers to perform manipulations, extract information, ... Until now, I just added #!/usr/bin/env rdmd to the d-scripts and run

Re: Install multiple executables with DUB

2020-09-04 Thread drug via Digitalmars-d-learn
On 9/4/20 10:27 AM, glis-glis wrote: On Thursday, 3 September 2020 at 14:34:48 UTC, Jacob Carlborg wrote: Oh, multiple binaries, I missed that. You can try to add multiple configurations [1]. Or if you have executables depending on only one source file, you can use single-file packages [2]. T

Re: Install multiple executables with DUB

2020-09-04 Thread glis-glis via Digitalmars-d-learn
On Thursday, 3 September 2020 at 14:34:48 UTC, Jacob Carlborg wrote: Oh, multiple binaries, I missed that. You can try to add multiple configurations [1]. Or if you have executables depending on only one source file, you can use single-file packages [2]. Thanks, but this still means I would h

Re: Install multiple executables with DUB

2020-09-03 Thread Jacob Carlborg via Digitalmars-d-learn
On 2020-09-03 14:41, glis-glis wrote: Yes I already tried that, but I get the error Error: only one main allowed. Previously found main at src/scripts/copy.d Looks like DUB doesn't like multiple binaries? Oh, multiple binaries, I missed that. You can try to add multiple configurations [1].

Re: Install multiple executables with DUB

2020-09-03 Thread glis-glis via Digitalmars-d-learn
On Thursday, 3 September 2020 at 09:36:53 UTC, Jacob Carlborg wrote: On Thursday, 3 September 2020 at 08:22:25 UTC, glis-glis wrote: I usually would just write a makefile for that, but I thought I'd give DUB a go. Unfortunately, the DUB-documentation is a little thin and I cannot find a way to

Re: Install multiple executables with DUB

2020-09-03 Thread Jacob Carlborg via Digitalmars-d-learn
On Thursday, 3 September 2020 at 08:22:25 UTC, glis-glis wrote: I usually would just write a makefile for that, but I thought I'd give DUB a go. Unfortunately, the DUB-documentation is a little thin and I cannot find a way to tell DUB "compile all the files in the scripts folder and put the bin

Install multiple executables with DUB

2020-09-03 Thread glis-glis via Digitalmars-d-learn
Hi, I have a few modules for parsing different file formats and a folder with d-scripts using these parsers to perform manipulations, extract information, ... Until now, I just added #!/usr/bin/env rdmd to the d-scripts and run them that way, but I'd like to make the scripts available to my