Sebastien Mondet avatar Sebastien Mondet committed 4d0403e

build: update generated files

Comments (0)

Files changed (2)

 Build & Install
 ---------------
 
+You need the following libraries:
+
+- Library `"pvem"` (opam package: `pvem`)
+- Library `"pvem_lwt_unix"` (opam package: `pvem_lwt_unix`)
+- Library `"unix"` (opam package: `base-unix`)
+- Library `"threads"` (opam package: `base-threads`)
+- Library `"lwt.preemptive"` (opam package: `lwt`)
+- Library `"lwt.unix"` (opam package: `lwt`)
+
+Then you can build the library:
+
      ocaml please.ml build
+
+Finally, you can install it with `ocamlfind`:
+
      ocaml please.ml install
 
+You may want to control the destination with the variable
+`OCAMLFIND_DESTDIR`.
+
 Uninstall
 ---------
 
    Sys.chdir "../";
    ()
 
+
 let build () =
   in_build_directory (fun () ->
       chain [
       ];
     )
 
+
 let install () =
     in_build_directory (fun () ->
         chain [
           "ocamlfind install pvem_lwt_file_lock ../META pvem_lwt_file_lock.cmx pvem_lwt_file_lock.cmo pvem_lwt_file_lock.cma pvem_lwt_file_lock.cmi pvem_lwt_file_lock.cmxa pvem_lwt_file_lock.cmxs pvem_lwt_file_lock.a pvem_lwt_file_lock.o"
         ])
 
+
+let merlinize () =
+    chain [
+      "echo 'S .' > .merlin";
+      "echo 'B _build' >> .merlin";
+      "echo 'PKG pvem' >> .merlin";
+"echo 'PKG pvem_lwt_unix' >> .merlin";
+"echo 'PKG unix' >> .merlin";
+"echo 'PKG threads' >> .merlin";
+"echo 'PKG lwt.preemptive' >> .merlin";
+"echo 'PKG lwt.unix' >> .merlin";
+     ]
+
+
 let build_doc () =
     in_build_directory (fun () ->
         chain [
                        sprintf "ocamlfind ocamldoc -package pvem,pvem_lwt_unix,unix,threads,lwt.preemptive,lwt.unix -thread -charset UTF-8 -keep-code -colorize-code -html pvem_lwt_file_lock.ml -d doc/";
         ])
 
+
 let name = "pvem_lwt_file_lock"
+
 let () =
   match args with
   | _ :: "build" :: [] ->
     chain [
       sprintf "ocamlfind remove %s" name
     ]
+  | _ :: "merlinize" :: [] -> merlinize ()
   | _ :: "clean" :: []
   | _ :: "C" :: [] ->
     cmdf "rm -fr _build"
     say "usage: ocaml %s [build|build_doc|install|uninstall|clean]" Sys.argv.(0);
     exit 1
     
+
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.