~ubuntu-branches/debian/sid/ocaml/sid

« back to all changes in this revision

Viewing changes to ocamlbuild/signatures.mli

  • Committer: Bazaar Package Importer
  • Author(s): Stefano Zacchiroli
  • Date: 2009-02-22 08:49:13 UTC
  • mfrom: (12.1.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090222084913-3i0uw2bhd0lgw0ok
* Uploading to unstable
* debian/control: bump dh-ocaml to (>= 0.4) to avoid buggy ocamlinit.mk

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
(*                                                                     *)
10
10
(***********************************************************************)
11
11
 
12
 
(* $Id: signatures.mli,v 1.8.2.19 2007/12/18 08:55:23 ertai Exp $ *)
 
12
(* $Id: signatures.mli,v 1.28 2008/07/25 14:42:28 ertai Exp $ *)
13
13
(* Original author: Nicolas Pouillard *)
14
14
(** This module contains all module signatures that the user
15
15
    could use to build an ocamlbuild plugin. *)
527
527
      ([command_spec]) when all [tags] will be activated. *)
528
528
  val flag : Tags.elt list -> Command.spec -> unit
529
529
 
 
530
  (** [flag_and_dep tags command_spec]
 
531
      Combines [flag] and [dep] function.
 
532
      Basically it calls [flag tags command_spec], and calls [dep tags files]
 
533
      where [files] is the list of all pathnames in [command_spec].
 
534
      Pathnames selected are those in the constructor [P] or [Px], or the
 
535
      pathname argument of builtins like [Echo]. *)
 
536
  val flag_and_dep : Tags.elt list -> Command.spec -> unit
 
537
 
530
538
  (** [non_dependency module_path module_name]
531
539
       Example: 
532
540
         [non_dependency "foo/bar/baz" "Goo"]
609
617
  (** Returns the set of tags that applies to the given pathname. *)
610
618
  val tags_of_pathname : Pathname.t -> Tags.t
611
619
 
 
620
  (** Run the given command and returns it's output as a string. *)
 
621
  val run_and_read : string -> string
 
622
 
612
623
  (** Here is the list of hooks that the dispatch function have to handle.
613
624
      Generally one respond to one or two hooks (like After_rules) and do
614
625
      nothing in the default case. *)