This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,47 @@
|
|||
Referring to files with an include in the bin section of the install stanza
|
||||
|
||||
$ cat >dune-project <<EOF
|
||||
> (lang dune 3.6)
|
||||
> (package (name foo))
|
||||
> EOF
|
||||
|
||||
Make some scripts to install in bin.
|
||||
$ cat >hello.sh <<EOF
|
||||
> #!/bin/sh
|
||||
> echo "Hello, World!"
|
||||
> EOF
|
||||
|
||||
$ cat >foo.sh <<EOF
|
||||
> #!/bin/sh
|
||||
> echo foo
|
||||
> EOF
|
||||
|
||||
Refer to the scripts with an include statement.
|
||||
$ echo '(hello.sh foo.sh)' > files.sexp
|
||||
$ cat >dune <<EOF
|
||||
> (install
|
||||
> (section bin)
|
||||
> (files (include files.sexp)))
|
||||
> EOF
|
||||
|
||||
$ dune build @install
|
||||
|
||||
Refer to the scripts literally.
|
||||
|
||||
$ cat >dune <<EOF
|
||||
> (install
|
||||
> (section bin)
|
||||
> (files hello.sh foo.sh))
|
||||
> EOF
|
||||
|
||||
$ dune build @install
|
||||
|
||||
$ find _build/install/default | sort
|
||||
_build/install/default
|
||||
_build/install/default/bin
|
||||
_build/install/default/bin/foo.sh
|
||||
_build/install/default/bin/hello.sh
|
||||
_build/install/default/lib
|
||||
_build/install/default/lib/foo
|
||||
_build/install/default/lib/foo/META
|
||||
_build/install/default/lib/foo/dune-package
|
||||
Loading…
Add table
Add a link
Reference in a new issue