From 0bfdada4b4143bc3e52ce84965e26cad5efd080a Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Wed, 6 Nov 2019 17:10:31 +0900 Subject: [PATCH] Use better naming convention for select Now we no longer need to include a `modules` field Signed-off-by: Rudi Grinberg --- src/{fsevents.ml => backend.fsevents.ml} | 0 src/{fsevents.mli => backend.fsevents.mli} | 0 src/{inotify.ml => backend.inotify.ml} | 0 src/{inotify.mli => backend.inotify.mli} | 0 src/{polling.ml => backend.polling.ml} | 0 src/{polling.mli => backend.polling.mli} | 0 src/dune | 13 ++++++------- 7 files changed, 6 insertions(+), 7 deletions(-) rename src/{fsevents.ml => backend.fsevents.ml} (100%) rename src/{fsevents.mli => backend.fsevents.mli} (100%) rename src/{inotify.ml => backend.inotify.ml} (100%) rename src/{inotify.mli => backend.inotify.mli} (100%) rename src/{polling.ml => backend.polling.ml} (100%) rename src/{polling.mli => backend.polling.mli} (100%) diff --git a/src/fsevents.ml b/src/backend.fsevents.ml similarity index 100% rename from src/fsevents.ml rename to src/backend.fsevents.ml diff --git a/src/fsevents.mli b/src/backend.fsevents.mli similarity index 100% rename from src/fsevents.mli rename to src/backend.fsevents.mli diff --git a/src/inotify.ml b/src/backend.inotify.ml similarity index 100% rename from src/inotify.ml rename to src/backend.inotify.ml diff --git a/src/inotify.mli b/src/backend.inotify.mli similarity index 100% rename from src/inotify.mli rename to src/backend.inotify.mli diff --git a/src/polling.ml b/src/backend.polling.ml similarity index 100% rename from src/polling.ml rename to src/backend.polling.ml diff --git a/src/polling.mli b/src/backend.polling.mli similarity index 100% rename from src/polling.mli rename to src/backend.polling.mli diff --git a/src/dune b/src/dune index cbc7404..6fcb235 100644 --- a/src/dune +++ b/src/dune @@ -1,14 +1,13 @@ (library (name irmin_watcher) - (modules core hook backend irmin_watcher) (public_name irmin-watcher) (c_names realpath) (libraries fmt lwt logs astring (select backend.ml from - (osx-cf.lwt osx-fsevents.lwt -> fsevents.ml) - (inotify.lwt -> inotify.ml) - (lwt.unix -> polling.ml)) + (osx-cf.lwt osx-fsevents.lwt -> backend.fsevents.ml) + (inotify.lwt -> backend.inotify.ml) + (lwt.unix -> backend.polling.ml)) (select backend.mli from - (osx-cf.lwt osx-fsevents.lwt -> fsevents.mli) - (inotify.lwt -> inotify.mli) - (lwt.unix -> polling.mli)))) + (osx-cf.lwt osx-fsevents.lwt -> backend.fsevents.mli) + (inotify.lwt -> backend.inotify.mli) + (lwt.unix -> backend.polling.mli))))