diff options
author | Nicolas Pouillard <np@nicolaspouillard.fr> | 2007-11-21 21:06:47 +0000 |
---|---|---|
committer | Nicolas Pouillard <np@nicolaspouillard.fr> | 2007-11-21 21:06:47 +0000 |
commit | 54e5904df43f94e51aee4ce16431326efa080cc8 (patch) | |
tree | cb5a2713b386f9ba208c783c460c713a660df7f4 | |
parent | 0f77a75787cb60f6f6e186345ed324387c556e3a (diff) |
[ocamlbuild] Remove custom_rule.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8581 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r-- | ocamlbuild/ocamlbuild_plugin.ml | 1 | ||||
-rw-r--r-- | ocamlbuild/rule.ml | 5 | ||||
-rw-r--r-- | ocamlbuild/rule.mli | 10 | ||||
-rw-r--r-- | ocamlbuild/signatures.mli | 10 |
4 files changed, 0 insertions, 26 deletions
diff --git a/ocamlbuild/ocamlbuild_plugin.ml b/ocamlbuild/ocamlbuild_plugin.ml index 2f15d1bdf..7cad63275 100644 --- a/ocamlbuild/ocamlbuild_plugin.ml +++ b/ocamlbuild/ocamlbuild_plugin.ml @@ -30,7 +30,6 @@ let rule = Rule.rule let dep = Rule.dep let file_rule = Rule.file_rule let copy_rule = Rule.copy_rule -let custom_rule = Rule.custom_rule let ocaml_lib = Ocamlbuild_pack.Ocaml_utils.ocaml_lib let flag = Ocamlbuild_pack.Flags.flag let non_dependency = Ocamlbuild_pack.Ocaml_utils.non_dependency diff --git a/ocamlbuild/rule.ml b/ocamlbuild/rule.ml index 2501b2346..fae7bfc02 100644 --- a/ocamlbuild/rule.ml +++ b/ocamlbuild/rule.ml @@ -303,11 +303,6 @@ let file_rule name ?tags ~prod ?deps ?dep ?insert ~cache action = DigestThunk(cache env build, thunk) end -let custom_rule name ?tags ?prods ?prod ?deps ?dep ?insert ~cache action = - gen_rule name ?tags ?prods ?prod ?dep ?deps ?insert begin fun env build -> - DigestThunk(cache env build, fun cached -> action env ~cached) - end - module Common_commands = struct open Command let mv src dest = Cmd (S [A"mv"; P src; Px dest]) diff --git a/ocamlbuild/rule.mli b/ocamlbuild/rule.mli index 0529ca5ed..8479ceceb 100644 --- a/ocamlbuild/rule.mli +++ b/ocamlbuild/rule.mli @@ -47,16 +47,6 @@ val file_rule : string -> cache:(env -> builder -> string) -> (env -> out_channel -> unit) -> unit -val custom_rule : string -> - ?tags:string list -> - ?prods:string list -> - ?prod:string -> - ?deps:string list -> - ?dep:string -> - ?insert:[`top | `before of string | `after of string | `bottom] -> - cache:(env -> builder -> string) -> - (env -> cached:bool -> unit) -> unit - (** [copy_rule name ?insert source destination] *) val copy_rule : string -> ?insert:[`top | `before of string | `after of string | `bottom] -> diff --git a/ocamlbuild/signatures.mli b/ocamlbuild/signatures.mli index e947adefe..724152917 100644 --- a/ocamlbuild/signatures.mli +++ b/ocamlbuild/signatures.mli @@ -465,16 +465,6 @@ module type PLUGIN = sig cache:(env -> builder -> string) -> (env -> out_channel -> unit) -> unit - val custom_rule : string -> - ?tags:string list -> - ?prods:string list -> - ?prod:string -> - ?deps:string list -> - ?dep:string -> - ?insert:[`top | `before of string | `after of string | `bottom] -> - cache:(env -> builder -> string) -> - (env -> cached:bool -> unit) -> unit - (** [copy_rule name ?insert source destination] *) val copy_rule : string -> ?insert:[`top | `before of string | `after of string | `bottom] -> |