10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-12-22 20:33:36 +01:00
QCaml/top/README.org

43 lines
844 B
Org Mode
Raw Normal View History

2020-12-29 00:39:12 +01:00
#+TITLE: Top-level
2021-01-28 00:34:26 +01:00
#+SETUPFILE: ../docs/theme.setup
2020-12-29 00:39:12 +01:00
2021-10-19 16:57:22 +02:00
* Summary
2020-12-29 00:39:12 +01:00
#+name: synopsis
2021-01-28 00:34:26 +01:00
#+begin_src ocaml :exports none :results value
"Installs pretty printers for top-level"
2020-12-29 00:39:12 +01:00
#+end_src
#+RESULTS: synopsis
2021-01-28 00:34:26 +01:00
: Installs pretty printers for top-level
2020-12-29 00:39:12 +01:00
* Dune files :noexport:
** Generate dune files
Use [C-c C-c] on the code below to create the output for the dune files
#+header: :noweb strip-export
2021-01-28 00:34:26 +01:00
#+header: :var name=(file-name-directory buffer-file-name)
2020-12-29 00:39:12 +01:00
#+begin_src python :exports none :results output none
name = name.split('/')[-2]
synopsis = """
<<synopsis>>
"""
2021-01-01 17:05:25 +01:00
with open("lib/dune",'w') as f:
2020-12-29 00:39:12 +01:00
f.write(f"""
(library
(name {name})
(public_name qcaml.{name})
(synopsis {synopsis} )
(modes byte)
(libraries
2021-01-28 00:34:26 +01:00
compiler-libs.toplevel
2020-12-29 00:39:12 +01:00
qcaml
)
)
""")
#+end_src