haskell-utils
allows compilers and tools that like to know about compilers to
register themselves so the latter can be informed about the addition and
removal of the former.
OPTIONS
PATH_TO_COMPILER is the path to the compiler, e.g. /usr/bin/ghc6
TYPE is GHC | NHC | HUGS | Other.
IDENT is a string uniquely identifying the trigger owner.
TRIGGER is the command to be run when the trigger happens.
%% is replaced with % and %p with the path to the compiler.
--help, -h
Show summary of options.
--version, -v
Print version information on standard output then exit successfully.
-e
If a program called fails, or if we are asked to remove something that
doesn't exist from our database, fail.
--add-compilerPATH_TO_COMPILERTYPEVERSION
Registers the compiler at PATH_TO_COMPILER as being of the given
type and version. For example,
``haskell-utils --add-compiler /usr/bin/ghc6 GHC 6.0.1''.
--remove-compilerPATH_TO_COMPILER
Unregisters compilers added with
--add-compiler,
e.g. ``haskell-utils --add-compiler /usr/bin/ghc6''.
--add-triggerIDENTTYPETRIGGER
Add a trigger. The TRIGGER will be executed as a command whenever
a new compiler of type TYPE is registered. Additionally it will be
run for all registered compilers of the appropriate type when the
trigger itself is added. Any occurence of %% will be replaced by % and
%p by the compiler path in TRIGGER. The IDENT is just a
string unique to the installing package so triggers can be removed.
--add-untriggerIDENTTYPETRIGGER
The same as
--add-untrigger
but called when compilers are removed rather than added.