Skip to content

A small script to create short-lived OPAM compiler switches from experimental OCaml branches

Notifications You must be signed in to change notification settings

hnrgrgr/opam-compiler-conf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

opam-compiler-conf

A small script to create short-lived OPAM compiler switches from experimental OCaml branches

Usage:

sh opam-compiler-conf.sh <command>

Here is the output from the 'help' command:

available commands: get-switch get-conf configure install switch reinstall remove|uninstall help

You should run this script from the directory of an OCaml compiler
source that you wish to install as an OPAM switch. It was designed for
short-lived experiments with experimental branches of the compiler, so
it infers the switch name from DCVS information (only git is
currently supported).

get-switch: returns the name of the OPAM switch inferred from DCVS information

get-conf:   returns the OPAM configuration file inferred

configure:  runs the ./configure script of the OCaml distribution
            (OCaml needs to be told at ./configure time where it will
            be installed, and we handle this for you, knowing where
            OPAM will expect its stuff); you can pass it arguments
            expected by the configure script (eg. --no-tk)

install:    setups the OPAM switch and install it (will run 'make install')
            you need to have compiled the distribution first 

switch:     switches to this new OPAM compiler (you'll still need to setup env)

reinstall:  reinstall the OPAM switch (useful if you changed the compiler source)

uninstall:  removes the OPAM switch and its configuration

help:       this message

About

A small script to create short-lived OPAM compiler switches from experimental OCaml branches

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%