* [Caml-list] [ANN] dune_watch, a small tool to relaunch jbuilder build at file system updates @ 2018-01-02 12:13 Jun Furuse 2018-01-02 12:17 ` Simon Cruanes 0 siblings, 1 reply; 3+ messages in thread From: Jun Furuse @ 2018-01-02 12:13 UTC (permalink / raw) To: caml-list Hi, I wrote a small tool, dune_watch, which automatically executes jbuilder build command each time when files under the executed directory are updated. This is something similar to the polling mode of omake's -P option, which I miss most in jbuilder. dune_watch uses fswatch command to monitor the file system. Since dune_watch knows nothing of the build dependencies, it may launch jbuilder even when it is not really required. It is, however, very useful for me, until jbuilder itself will support the file system polling. dune_watch will be opam-available soon. Regards, Jun ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] [ANN] dune_watch, a small tool to relaunch jbuilder build at file system updates 2018-01-02 12:13 [Caml-list] [ANN] dune_watch, a small tool to relaunch jbuilder build at file system updates Jun Furuse @ 2018-01-02 12:17 ` Simon Cruanes 2018-01-02 12:31 ` Xavier Clerc 0 siblings, 1 reply; 3+ messages in thread From: Simon Cruanes @ 2018-01-02 12:17 UTC (permalink / raw) To: Jun Furuse; +Cc: caml-list [-- Attachment #1: Type: text/plain, Size: 353 bytes --] I've been using a small script for the same purpose for a while now (as a Makefile target): watch: while find src/ -print0 | xargs -0 inotifywait -e delete_self -e modify ; do \ jbuilder build @install; \ done -- Simon Cruanes http://weusepgp.info/ key 49AA62B6, fingerprint 949F EB87 8F06 59C6 D7D3 7D8D 4AC0 1D08 49AA 62B6 [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] [ANN] dune_watch, a small tool to relaunch jbuilder build at file system updates 2018-01-02 12:17 ` Simon Cruanes @ 2018-01-02 12:31 ` Xavier Clerc 0 siblings, 0 replies; 3+ messages in thread From: Xavier Clerc @ 2018-01-02 12:31 UTC (permalink / raw) To: Simon Cruanes; +Cc: Jun Furuse, caml-list [-- Attachment #1: Type: text/plain, Size: 563 bytes --] I found watchman (https://facebook.github.io/watchman/) to be useful in this kind of situation. On Tue, Jan 2, 2018 at 12:17 PM, Simon Cruanes <simon.cruanes.2007@m4x.org> wrote: > I've been using a small script for the same purpose for a while now (as > a Makefile target): > > watch: > while find src/ -print0 | xargs -0 inotifywait -e delete_self -e > modify ; do \ > jbuilder build @install; \ > done > > -- > Simon Cruanes > > http://weusepgp.info/ > key 49AA62B6, fingerprint 949F EB87 8F06 59C6 D7D3 7D8D 4AC0 1D08 49AA > 62B6 > [-- Attachment #2: Type: text/html, Size: 1104 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-01-02 12:31 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2018-01-02 12:13 [Caml-list] [ANN] dune_watch, a small tool to relaunch jbuilder build at file system updates Jun Furuse 2018-01-02 12:17 ` Simon Cruanes 2018-01-02 12:31 ` Xavier Clerc
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox