This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,16 @@
Demonstrate the following variables: %{os}, %{os_version}, %{os_distribution}, %{os_family}
$ cat >dune-project <<EOF
> (lang dune 3.20)
> EOF
$ cat >dune <<EOF
> (rule (write-file out "%{os}\n%{os_version}\n%{os_distribution}\n%{os_family}\n"))
> EOF
$ dune build out
The values are not going to be portable, so we just count how many we get:
$ grep -c '.' _build/default/out
4