summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2015-02-02 09:03:43 +0600
committerDaniil Baturin <daniil@baturin.org>2015-02-02 09:03:43 +0600
commit0a3e8391bed31a7e0049643a2956953201c2f3fa (patch)
treee8a5d4ff8e420688645d03290bbee179ec6e1296
parentb7e7dea14bdc96cfa16f84555c609ae317a56493 (diff)
downloadvyconf-0a3e8391bed31a7e0049643a2956953201c2f3fa.tar.gz
vyconf-0a3e8391bed31a7e0049643a2956953201c2f3fa.zip
Add basic oasis build setup.
-rw-r--r--Makefile41
-rw-r--r--_oasis16
-rwxr-xr-xconfigure27
-rw-r--r--setup.ml37
4 files changed, 121 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..3639f14
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,41 @@
+# OASIS_START
+# DO NOT EDIT (digest: a3c674b4239234cbbe53afe090018954)
+
+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)
+
+configure:
+ $(SETUP) -configure $(CONFIGUREFLAGS)
+
+.PHONY: build doc test all install uninstall reinstall clean distclean configure
+
+# OASIS_STOP
diff --git a/_oasis b/_oasis
new file mode 100644
index 0000000..4ec905d
--- /dev/null
+++ b/_oasis
@@ -0,0 +1,16 @@
+Name: VyConf
+Version: 0.1
+Synopsis: Appliance configuration framework
+Authors: VyOS maintainers <maintainers@vyos.net>
+License: LGPL with OCaml linking exception
+
+Description: VyConf
+Homepage: http://vyos.net
+
+OASISFormat: 0.4
+BuildTools: ocamlbuild
+Plugins: META (0.4), DevFiles (0.4)
+
+Executable "vyconfd"
+ Path: src
+ MainIs: vyconfd.ml
diff --git a/configure b/configure
new file mode 100755
index 0000000..6acfaeb
--- /dev/null
+++ b/configure
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# OASIS_START
+# DO NOT EDIT (digest: dc86c2ad450f91ca10c931b6045d0499)
+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/setup.ml b/setup.ml
new file mode 100644
index 0000000..fe8169f
--- /dev/null
+++ b/setup.ml
@@ -0,0 +1,37 @@
+(* setup.ml generated for the first time by OASIS v0.4.4 *)
+
+(* OASIS_START *)
+(* DO NOT EDIT (digest: 9852805d5c19ca1cb6abefde2dcea323) *)
+(******************************************************************************)
+(* OASIS: architecture for building OCaml libraries and applications *)
+(* *)
+(* Copyright (C) 2011-2013, Sylvain Le Gall *)
+(* Copyright (C) 2008-2011, OCamlCore SARL *)
+(* *)
+(* This library is free software; you can redistribute it and/or modify it *)
+(* under the terms of the GNU Lesser General Public License as published by *)
+(* the Free Software Foundation; either version 2.1 of the License, or (at *)
+(* your option) any later version, with the OCaml static compilation *)
+(* exception. *)
+(* *)
+(* This library is distributed in the hope that it will be useful, but *)
+(* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *)
+(* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *)
+(* details. *)
+(* *)
+(* You should have received a copy of the GNU Lesser General Public License *)
+(* along with this library; if not, write to the Free Software Foundation, *)
+(* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *)
+(******************************************************************************)
+
+let () =
+ try
+ Topdirs.dir_directory (Sys.getenv "OCAML_TOPLEVEL_PATH")
+ with Not_found -> ()
+;;
+#use "topfind";;
+#require "oasis.dynrun";;
+open OASISDynRun;;
+
+(* OASIS_STOP *)
+let () = setup ();;