This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,34 @@
|
|||
$ . ../git-helpers.sh
|
||||
|
||||
Project with opam files
|
||||
-----------------------
|
||||
|
||||
$ cat > dune-project <<EOF
|
||||
> (lang dune 1.0)
|
||||
> (name foo)
|
||||
> EOF
|
||||
|
||||
$ X=%%; cat > file.ml <<EOF
|
||||
> let name = "${X}NAME${X}"
|
||||
> let authors = "${X}PKG_AUTHORS${X}"
|
||||
> let version = "${X}VERSION${X}"
|
||||
> EOF
|
||||
|
||||
$ echo 'authors: [ "John Doe <john@doe.com>" ]' > foo.opam
|
||||
|
||||
$ git init --quiet
|
||||
$ git add .
|
||||
$ git commit -am _ --quiet
|
||||
$ git tag -a 1.0 -m 1.0
|
||||
|
||||
$ dune subst
|
||||
|
||||
$ cat file.ml
|
||||
let name = "foo"
|
||||
let authors = "John Doe <john@doe.com>"
|
||||
let version = "1.0"
|
||||
|
||||
$ cat dune-project
|
||||
(lang dune 1.0)
|
||||
(name foo)
|
||||
(version 1.0)
|
||||
Loading…
Add table
Add a link
Reference in a new issue