@Karl Palmskog : I have an opam question: is there a less silly way to ask if a package is installed than [ -z "$(opam show --list-files coq-gappa)" ]
@Michael Soegtrop yes, there is %{package:installed}
, for example:
"--with-ocaml-freestanding" "%{ocaml-freestanding:installed}%"
I meant on the shell but you gave the right hint: [ $(opam var "coq-gappa:installed") == "true" ]
works!
Last updated: Jun 03 2023 at 05:01 UTC