diff --git a/INSTALL.txt b/INSTALL.txt new file mode 100644 index 000000000..c1bf95439 --- /dev/null +++ b/INSTALL.txt @@ -0,0 +1,41 @@ +(* OASIS_START *) +(* DO NOT EDIT (digest: ff0c0738209864dae2ec41d0587fb256) *) +This is the INSTALL file for the frenetic distribution. + +This package uses OASIS to generate its build system. See section OASIS for +full information. + +Dependencies +============ + +In order to compile this package, you will need: +* ocaml for all, doc doc +* findlib +* lwt for library netcore, executable frenetic +* cstruct for library netcore +* packet for library netcore, executable Test_Frenetic +* openflow for library netcore +* oUnit for executable Test_Frenetic + +Installing +========== + +1. Uncompress the source archive and go to the root of the package +2. Run 'ocaml setup.ml -configure' +3. Run 'ocaml setup.ml -build' +4. Run 'ocaml setup.ml -install' + +Uninstalling +============ + +1. Go to the root of the package +2. Run 'ocaml setup.ml -uninstall' + +OASIS +===== + +OASIS is a program that generates a setup.ml file using a simple '_oasis' +configuration file. The generated setup only depends on the standard OCaml +installation: no additional library is required. + +(* OASIS_STOP *) diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..68f2e0e9a --- /dev/null +++ b/Makefile @@ -0,0 +1,38 @@ +# OASIS_START +# DO NOT EDIT (digest: bc1e05bfc8b39b664f29dae8dbd3ebbb) + +SETUP = ocaml setup.ml + +build: setup.data + $(SETUP) -build $(BUILDFLAGS) + +doc: setup.data build + $(SETUP) -doc $(DOCFLAGS) + +test: setup.data build + $(SETUP) -test $(TESTFLAGS) + +all: + $(SETUP) -all $(ALLFLAGS) + +install: setup.data + $(SETUP) -install $(INSTALLFLAGS) + +uninstall: setup.data + $(SETUP) -uninstall $(UNINSTALLFLAGS) + +reinstall: setup.data + $(SETUP) -reinstall $(REINSTALLFLAGS) + +clean: + $(SETUP) -clean $(CLEANFLAGS) + +distclean: + $(SETUP) -distclean $(DISTCLEANFLAGS) + +setup.data: + $(SETUP) -configure $(CONFIGUREFLAGS) + +.PHONY: build doc test all install uninstall reinstall clean distclean configure + +# OASIS_STOP diff --git a/configure b/configure new file mode 100755 index 000000000..97ed012e6 --- /dev/null +++ b/configure @@ -0,0 +1,27 @@ +#!/bin/sh + +# OASIS_START +# DO NOT EDIT (digest: 425187ed8bfdbdd207fd76392dd243a7) +set -e + +FST=true +for i in "$@"; do + if $FST; then + set -- + FST=false + fi + + case $i in + --*=*) + ARG=${i%%=*} + VAL=${i##*=} + set -- "$@" "$ARG" "$VAL" + ;; + *) + set -- "$@" "$i" + ;; + esac +done + +ocaml setup.ml -configure "$@" +# OASIS_STOP diff --git a/lib/META b/lib/META index e94ec333f..1f639b7d3 100644 --- a/lib/META +++ b/lib/META @@ -1,6 +1,6 @@ # OASIS_START -# DO NOT EDIT (digest: 4ddfa6a64f74f41ca9ec6f53c60c54d2) -version = "1.0.1" +# DO NOT EDIT (digest: ee9b7113d4d50f23a623d83bdd63b95f) +version = "1.0.2" description = "The Frenetic Compiler and Runtime System" requires = "lwt lwt.unix cstruct lwt.syntax str packet openflow" archive(byte) = "netcore.cma" diff --git a/setup.ml b/setup.ml index b1de2542d..cb72f92a6 100644 --- a/setup.ml +++ b/setup.ml @@ -1,7 +1,7 @@ (* setup.ml generated for the first time by OASIS v0.3.0 *) (* OASIS_START *) -(* DO NOT EDIT (digest: 872d67cfe4bd0ca3af3c1a0081cd7f07) *) +(* DO NOT EDIT (digest: 2e31547e81f9438a4cdeacfb49470603) *) (* Regenerated by OASIS v0.3.0 Visit http://oasis.forge.ocamlcore.org for more information and @@ -5578,7 +5578,7 @@ let setup_t = ocaml_version = None; findlib_version = None; name = "frenetic"; - version = "1.0.1"; + version = "1.0.2"; license = OASISLicense.DEP5License (OASISLicense.DEP5Unit @@ -5808,13 +5808,19 @@ let setup_t = [ExternalTool "ocamlbuild"; ExternalTool "ocamldoc"]; }) ]; - plugins = [(`Extra, "META", Some "0.3")]; + plugins = + [ + (`Extra, "META", Some "0.3"); + (`Extra, "StdFiles", Some "0.3"); + (`Extra, "DevFiles", Some "0.3") + ]; schema_data = PropList.Data.create (); plugin_data = []; }; oasis_fn = Some "_oasis"; oasis_version = "0.3.0"; - oasis_digest = Some "\236j\139r!\225\223\173\128-_z\182<\255\176"; + oasis_digest = + Some "\204\160\n\222\227\156]\198\197\017V\248\139\223\164\238"; oasis_exec = None; oasis_setup_args = []; setup_update = false; @@ -5822,6 +5828,6 @@ let setup_t = let setup () = BaseSetup.setup setup_t;; -# 5826 "setup.ml" +# 5832 "setup.ml" (* OASIS_STOP *) let () = setup ();;