Skip to content

Commit

Permalink
oasis setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Arjun Guha committed Jul 6, 2013
1 parent 8edf1f7 commit 184c1cf
Show file tree
Hide file tree
Showing 5 changed files with 119 additions and 7 deletions.
41 changes: 41 additions & 0 deletions INSTALL.txt
Original file line number Diff line number Diff line change
@@ -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 *)
38 changes: 38 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
27 changes: 27 additions & 0 deletions configure
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions lib/META
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
16 changes: 11 additions & 5 deletions setup.ml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -5808,20 +5808,26 @@ 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;
};;

let setup () = BaseSetup.setup setup_t;;

# 5826 "setup.ml"
# 5832 "setup.ml"
(* OASIS_STOP *)
let () = setup ();;

0 comments on commit 184c1cf

Please sign in to comment.