File: configure.ml

package info (click to toggle)
camomile 1.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 40,248 kB
  • sloc: ml: 13,757; xml: 230; makefile: 55
file content (11 lines) | stat: -rw-r--r-- 350 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env ocaml

let () =
  let share = ref "/usr/share/camomile" in
  let args =
    [ "--share", Arg.Set_string share, "DIR directory where to put data files" ]
  in
  Arg.parse args ignore "Configura camomile\noptions are:";
  let oc = open_out "Camomile/installConfig.ml" in
  Printf.fprintf oc "let share_dir = %S\n" !share;
  close_out oc