diff --git a/build/build.ml b/build/build.ml index 34fb034299..593dc52bb7 100644 --- a/build/build.ml +++ b/build/build.ml @@ -15,9 +15,9 @@ module Intern = struct end let with_package = function - | "eliom.ppx.type" -> "pkg_ppx_eliom_types" - | "eliom.ppx.client" - | "eliom.ppx.server" + | "ppx_eliom.ppx.type" -> "pkg_ppx_eliom_types" + | "ppx_eliom.ppx.client" + | "ppx_eliom.ppx.server" | "eliom.syntax.predef" | "eliom.client" | "eliom.server" -> (* do noting in this case *) "pkg_dummy" diff --git a/dune-project b/dune-project new file mode 100644 index 0000000000..fa5a9e4075 --- /dev/null +++ b/dune-project @@ -0,0 +1 @@ +(lang dune 1.8.2) \ No newline at end of file diff --git a/opam b/eliom.opam similarity index 90% rename from opam rename to eliom.opam index a1c00f448f..9a3d5d6c3f 100644 --- a/opam +++ b/eliom.opam @@ -9,13 +9,21 @@ homepage: "http://ocsigen.org/eliom/" bug-reports: "https://github.com/ocsigen/eliom/issues/" license: "LGPL-2.1 with OCaml linking exception" dev-repo: "git+https://github.com/ocsigen/eliom.git" -build: [make] +build: [ + ["dune" "build" "--profile" "release"] +] +install: [ + ["dune" "install"] +] depends: [ + "dune" "ocaml" {>= "4.06.1"} "ocamlfind" "deriving" {>= "0.6"} "ppx_deriving" "ppx_tools" {>= "0.99.3"} + "ppx_eliom" {>= "1.0.0"} + "eliom_camlp4" "js_of_ocaml" {>= "3.3"} "js_of_ocaml-lwt" {>= "3.3"} "js_of_ocaml-ocamlbuild" {build} diff --git a/pkg/META b/pkg/META deleted file mode 100644 index 7ab2a4d2d0..0000000000 --- a/pkg/META +++ /dev/null @@ -1,138 +0,0 @@ -description = "Eliom: client-server Web and mobile applications" -version = "6.3.0" - -package "server" ( - description = "Eliom: server-side" - version = "[distributed with Eliom]" - directory = "server" - - requires = "ocsigenserver, - ocsigenserver.ext, - ppx_deriving.runtime, - js_of_ocaml.deriving, - react, - reactiveData, - tyxml, - lwt_react, - cryptokit, - reactiveData" - archive(byte) = "server.cma" - archive(native) = "server.cmxa" - - package "monitor" ( - directory = "monitor" - description = "Eliom: monitoring" - version = "[distributed with Eliom]" - archive(byte) = "eliom_monitor.cma" - archive(native) = "eliom_monitor.cmxa" - package "start" ( - description = "Eliom: monitoring" - version = "[distributed with Eliom]" - require = "eliom.server.monitor" - archive(byte) = "eliom_monitor_main.cma" - archive(native) = "eliom_monitor_main.cmxa" - ) - ) -) - -package "client" ( - description = "Eliom: client-side" - version = "[distributed with Eliom]" - directory = "client" - - requires = "ocsigenserver.cookies, - ocsigenserver.polytables, - ocsigenserver.baselib.base, - ppx_deriving.runtime, - js_of_ocaml, - js_of_ocaml.deriving, - js_of_ocaml-tyxml, - js_of_ocaml-lwt, - js_of_ocaml-lwt.logger, - js_of_ocaml.weak, - lwt_react, - react, - reactiveData, - tyxml.functor" - archive(byte) = "client.cma eliom_client_main.cmo" - - linkopts(javascript) = "+eliom.client/eliom_client.js" -) - -package "syntax" ( - directory = "syntax" - package "common" ( - description = "Syntax extension: spliting client and server code (base)" - version = "[distributed with Eliom]" - requires = "camlp4, bytes" - requires(preprocessor, syntax, pkg_type_conv) = "type_conv" - archive(syntax, preprocessor) = "pa_eliom_seed.cmo" - ) - - package "client" ( - description = "Syntax extension: spliting client and server code (client side)" - version = "[distributed with Eliom]" - requires(syntax, preprocessor) = "eliom.syntax.common" - requires(syntax, toploop) = "eliom.syntax.common" - archive(syntax, preprocessor) = "pa_eliom_client_client.cmo" - archive(syntax, toploop) = "pa_eliom_client_client.cmo" - ) - - package "server" ( - description = "Syntax extension: spliting client and server code (server side)" - version = "[distributed with Eliom]" - requires(syntax, preprocessor) = "eliom.syntax.common" - requires(syntax, toploop) = "eliom.syntax.common" - archive(syntax, preprocessor) = "pa_eliom_client_server.cmo" - archive(syntax, toploop) = "pa_eliom_client_server.cmo" - ) - - package "type" ( - description = "Syntax extension: spliting client and server code (type inference)" - version = "[distributed with Eliom]" - requires(syntax, preprocessor) = "eliom.syntax.common" - archive(syntax, preprocessor) = "pa_eliom_type_filter.cmo" - ) - - package "predef" ( - description = "Syntax extension: predefined commonly use syntaxes" - version = "[distributed with Eliom]" - - requires(syntax, preprocessor) = "js_of_ocaml-camlp4,js_of_ocaml-camlp4.deriving,lwt_camlp4" - requires(syntax, toploop) = "js_of_ocaml-camlp4,js_of_ocaml-camlp4.deriving,lwt_camlp4" - archive(syntax, preprocessor) = "-ignore dummy" - ) - -) - -package "ppx" ( - directory = "ppx" - package "server" ( - description = "Ppx syntax extension: server side" - ppx = "ppx_eliom_server" - ) - package "client" ( - description = "Ppx syntax extension: client side" - ppx = "ppx_eliom_client" - ) - package "type" ( - description = "Ppx syntax extension: type inference" - ppx = "ppx_eliom_types" - ) -) - - -package "templates" ( - directory = "templates" -) - -package "ocamlbuild" ( - description = "Eliom ocamlbuild plugin (js_of_ocaml part included)" - version = "[distributed with Eliom]" - directory = "ocamlbuild" - requires = "js_of_ocaml.ocamlbuild" - archive(byte) = "ocamlbuild_eliom.cma" - archive(byte, plugin) = "ocamlbuild_eliom.cma" - archive(native) = "ocamlbuild_eliom.cmxa" - archive(native, plugin) = "ocamlbuild_eliom.cmxs" -) diff --git a/pkg/build.ml b/pkg/build.ml deleted file mode 100755 index ba03dec607..0000000000 --- a/pkg/build.ml +++ /dev/null @@ -1,120 +0,0 @@ -#!/usr/bin/env ocaml -#directory "pkg";; -#use "topkg.ml";; -#use "filelist.ml" - -(* DEBUG ONLY *) -let nothing_should_be_rebuilt=false -let except = function - (* cmxs are regerated every time ( bug in ocamlbuild rule) *) - | ".cmxs" when nothing_should_be_rebuilt -> false - | _ -> true -(* END *) - -let exts_syntax = List.filter except [".cmo";".cmx";".cma";".cmxa";".cmxs";".a"] -let exts_modlib = List.filter except Exts.module_library -let exts_lib = List.filter except Exts.library - -let _ = - list_to_file "src/lib/client/client.mllib" client_mllib; - list_to_file "src/lib/client/api.odocl" client_api; - - list_to_file "src/lib/server/server.mllib" server_mllib; - list_to_file "src/lib/server/server.mldylib" server_mllib; - list_to_file "src/lib/server/api.odocl" server_api; - - list_to_file "src/ocamlbuild/ocamlbuild.mllib" ocamlbuild_mllib; - list_to_file "src/ocamlbuild/ocamlbuild.mldylib" ocamlbuild_mllib; - list_to_file "src/ocamlbuild/api.odocl" ocamlbuild_api; - - list_to_file "src/ppx/ppx.mllib" ppx_mllib; - list_to_file "src/ppx/ppx.mldylib" ppx_mllib; - list_to_file "src/ppx/api.odocl" ppx_api; - - list_to_file "src/ppx/ppx.mllib" ppx_mllib; - list_to_file "src/ppx/ppx.mldylib" ppx_mllib; - list_to_file "src/ppx/api.odocl" ppx_api - -let spf = Printf.sprintf - -let nothing = - if nothing_should_be_rebuilt - then "-nothing-should-be-rebuilt" - else "" - -let builder = `Other ("_build/build/build.native","_build") - -let with_man3 = Env.bool "manpage" - -let () = - Pkg.describe "eliom" ~builder ([ - (* META *) - Pkg.lib "pkg/META"; - - (* MANPAGE *) - Pkg.man ~dst:"man1/eliomc.1" "pkg/man/eliomc.1"; - Pkg.man ~dst:"man1/eliomcp.1" "pkg/man/eliomc.1"; - Pkg.man ~dst:"man1/eliomopt.1" "pkg/man/eliomc.1"; - Pkg.man ~dst:"man1/eliomdep.1" "pkg/man/eliomc.1"; - Pkg.man ~dst:"man1/js_of_eliom.1" "pkg/man/eliomc.1"; - Pkg.man ~dst:"man1/eliom-distillery.1" "pkg/man/eliom-distillery.1"; - - Pkg.man ~cond:with_man3 ~dst:"man3/%.3oc" ~target:"src/lib/client/api.mandocdir/man.3oc" "src/lib/client/api.mandocdir/%.3oc"; - Pkg.man ~cond:with_man3 ~dst:"man3/%.3os" ~target:"src/lib/server/api.mandocdir/man.3os" "src/lib/server/api.mandocdir/%.3os"; - Pkg.man ~cond:with_man3 ~dst:"man3/%.3o" ~target:"src/ocamlbuild/api.mandocdir/man.3o" "src/ocamlbuild/api.mandocdir/%.3o"; - Pkg.man ~cond:with_man3 ~dst:"man3/%.3o" ~target:"src/ppx/api.mandocdir/man.3o" "src/ppx/api.mandocdir/%.3o"; - - (* TOOLS *) - Pkg.bin ~auto:true "src/tools/eliomc"; - Pkg.bin ~auto:true "src/tools/eliomcp"; - Pkg.bin ~auto:true "src/tools/eliomdep"; - Pkg.bin ~auto:true "src/tools/eliomopt"; - Pkg.bin ~auto:true "src/tools/js_of_eliom"; - Pkg.bin ~auto:true "src/tools/eliomdoc"; - Pkg.bin ~auto:true "src/tools/eliompp"; - Pkg.bin ~auto:true ~dst:"eliom-distillery" "src/tools/distillery"; - Pkg.bin ~auto:true "src/ocamlbuild/eliombuild"; - - (* SYNTAXES *) - Pkg.lib ~exts:exts_syntax ~dst:"syntax/pa_eliom_seed" "src/syntax/pa_eliom_seed"; - Pkg.lib ~exts:exts_syntax ~dst:"syntax/pa_eliom_client_client" "src/syntax/pa_eliom_client_client"; - Pkg.lib ~exts:exts_syntax ~dst:"syntax/pa_eliom_client_server" "src/syntax/pa_eliom_client_server"; - Pkg.lib ~exts:exts_syntax ~dst:"syntax/pa_eliom_type_filter" "src/syntax/pa_eliom_type_filter"; - - Pkg.lib ~exts:exts_modlib ~dst:"ocamlbuild/ocamlbuild_eliom" "src/ocamlbuild/ocamlbuild_eliom"; - - (* PPX *) - Pkg.lib ~exts:Exts.module_library ~dst:"ppx/ppx_eliom" "src/ppx/ppx_eliom"; - Pkg.lib ~exts:Exts.module_library ~dst:"ppx/ppx_eliom_client" "src/ppx/ppx_eliom_client"; - Pkg.lib ~exts:Exts.module_library ~dst:"ppx/ppx_eliom_type" "src/ppx/ppx_eliom_type"; - Pkg.lib ~exts:Exts.module_library ~dst:"ppx/ppx_eliom_server" "src/ppx/ppx_eliom_server"; - - Pkg.bin ~auto:true ~dst:"ppx_eliom_client" "src/ppx/ppx_eliom_client_ex" ; - Pkg.bin ~auto:true ~dst:"ppx_eliom_server" "src/ppx/ppx_eliom_server_ex" ; - Pkg.bin ~auto:true ~dst:"ppx_eliom_types" "src/ppx/ppx_eliom_types_ex" - - ] @ ( - (* CLIENT LIBS *) - Pkg.lib ~dst:"client/client" ~exts:[".cma"] "src/lib/client/client" :: - Pkg.lib ~dst:"client/eliom_client_main.cmo" "src/lib/client/eliom_client_main.cmo" :: - Pkg.lib ~dst:"client/eliom_client.js" "src/lib/client/eliom_client.js" :: - List.map (fun x -> Pkg.lib ~dst:(spf "client/%s" x) (spf "src/lib/client/%s" x)) client_extra - ) @ ( - (* SERVER LIBS *) - Pkg.lib ~dst:"server/monitor/eliom_monitor" ~exts:Exts.module_library "src/lib/server/monitor/eliom_monitor" :: - Pkg.lib ~dst:"server/monitor/eliom_monitor_main" ~exts:Exts.module_library "src/lib/server/monitor/eliom_monitor_main" :: - Pkg.lib ~dst:"server/server" ~exts:exts_lib "src/lib/server/server" :: - List.map (fun x -> Pkg.lib ~dst:(spf "server/%s" x) (spf "src/lib/server/%s" x)) server_extra - ) @ [ - (* MISC *) - - Pkg.doc "README.md"; - Pkg.doc "CHANGES"; - Pkg.etc "pkg/etc/mime.types" - ] @ ( - List.flatten ( - List.map (fun (name,files) -> - List.map (fun file -> - Pkg.lib ~dst:(spf "templates/%s/%s" name file) (spf "%s/%s/%s" templates_dir name file) - ) files) templates_files ) - )) diff --git a/pkg/distillery/basic.camlp4/.ocp-indent b/pkg/distillery/basic.camlp4/.ocp-indent deleted file mode 100644 index e98972dec4..0000000000 --- a/pkg/distillery/basic.camlp4/.ocp-indent +++ /dev/null @@ -1,4 +0,0 @@ -normal -with=0 -syntax=lwt mll -max_indent=2 diff --git a/pkg/distillery/basic.camlp4/Makefile b/pkg/distillery/basic.camlp4/Makefile deleted file mode 100644 index adfeb11620..0000000000 --- a/pkg/distillery/basic.camlp4/Makefile +++ /dev/null @@ -1,240 +0,0 @@ - -##---------------------------------------------------------------------- -## DISCLAIMER -## -## This file contains the rules to make an Eliom project. The project is -## configured through the variables in the file Makefile.options. -##---------------------------------------------------------------------- - -include Makefile.options - -##---------------------------------------------------------------------- -## Internals - -## Required binaries -ELIOMC := eliomc -ELIOMOPT := eliomopt -JS_OF_ELIOM := js_of_eliom -ELIOMDEP := eliomdep -OCSIGENSERVER := ocsigenserver -OCSIGENSERVER.OPT := ocsigenserver.opt - -## Where to put intermediate object files. -## - ELIOM_{SERVER,CLIENT}_DIR must be distinct -## - ELIOM_CLIENT_DIR must not be the local dir. -## - ELIOM_SERVER_DIR could be ".", but you need to -## remove it from the "clean" rules... -export ELIOM_SERVER_DIR := _server -export ELIOM_CLIENT_DIR := _client -export ELIOM_TYPE_DIR := _server -DEPSDIR := _deps - -ifeq ($(DEBUG),yes) - GENERATE_DEBUG ?= -g - RUN_DEBUG ?= "-v" - DEBUG_JS ?= -jsopt -pretty -jsopt -noinline -jsopt -debuginfo -endif - -##---------------------------------------------------------------------- -## General - -.PHONY: all byte opt -all: byte opt -byte opt:: $(TEST_PREFIX)$(ELIOMSTATICDIR)/${PROJECT_NAME}.js -byte opt:: $(TEST_PREFIX)$(ETCDIR)/$(PROJECT_NAME).conf -byte opt:: $(TEST_PREFIX)$(ETCDIR)/$(PROJECT_NAME)-test.conf -byte:: $(TEST_PREFIX)$(LIBDIR)/${PROJECT_NAME}.cma -opt:: $(TEST_PREFIX)$(LIBDIR)/${PROJECT_NAME}.cmxs - -DIST_DIRS = $(ETCDIR) $(DATADIR) $(LIBDIR) $(LOGDIR) $(STATICDIR) $(ELIOMSTATICDIR) $(shell dirname $(CMDPIPE)) - -##---------------------------------------------------------------------- -## Testing - -DIST_FILES = $(ELIOMSTATICDIR)/$(PROJECT_NAME).js $(LIBDIR)/$(PROJECT_NAME).cma - -.PHONY: test.byte test.opt -test.byte: $(addprefix $(TEST_PREFIX),$(ETCDIR)/$(PROJECT_NAME)-test.conf $(DIST_DIRS) $(DIST_FILES)) - $(OCSIGENSERVER) $(RUN_DEBUG) -c $< -test.opt: $(addprefix $(TEST_PREFIX),$(ETCDIR)/$(PROJECT_NAME)-test.conf $(DIST_DIRS) $(patsubst %.cma,%.cmxs, $(DIST_FILES))) - $(OCSIGENSERVER.OPT) $(RUN_DEBUG) -c $< - -$(addprefix $(TEST_PREFIX), $(DIST_DIRS)): - mkdir -p $@ - -##---------------------------------------------------------------------- -## Installing & Running - -.PHONY: install install.byte install.byte install.opt install.static install.etc install.lib install.lib.byte install.lib.opt run.byte run.opt -install: install.byte install.opt -install.byte: install.lib.byte install.etc install.static | $(addprefix $(PREFIX),$(DATADIR) $(LOGDIR) $(shell dirname $(CMDPIPE))) -install.opt: install.lib.opt install.etc install.static | $(addprefix $(PREFIX),$(DATADIR) $(LOGDIR) $(shell dirname $(CMDPIPE))) -install.lib: install.lib.byte install.lib.opt -install.lib.byte: $(TEST_PREFIX)$(LIBDIR)/$(PROJECT_NAME).cma | $(PREFIX)$(LIBDIR) - install $< $(PREFIX)$(LIBDIR) -install.lib.opt: $(TEST_PREFIX)$(LIBDIR)/$(PROJECT_NAME).cmxs | $(PREFIX)$(LIBDIR) - install $< $(PREFIX)$(LIBDIR) -install.static: $(TEST_PREFIX)$(ELIOMSTATICDIR)/$(PROJECT_NAME).js | $(PREFIX)$(STATICDIR) $(PREFIX)$(ELIOMSTATICDIR) - cp -r $(LOCAL_STATIC)/* $(PREFIX)$(STATICDIR) - [ -z $(WWWUSER) ] || chown -R $(WWWUSER) $(PREFIX)$(STATICDIR) - install $(addprefix -o ,$(WWWUSER)) $< $(PREFIX)$(ELIOMSTATICDIR) -install.etc: $(TEST_PREFIX)$(ETCDIR)/$(PROJECT_NAME).conf | $(PREFIX)$(ETCDIR) - install $< $(PREFIX)$(ETCDIR)/$(PROJECT_NAME).conf - -.PHONY: -print-install-files: - @echo $(PREFIX)$(LIBDIR) - @echo $(PREFIX)$(STATICDIR) - @echo $(PREFIX)$(ELIOMSTATICDIR) - @echo $(PREFIX)$(ETCDIR) - -$(addprefix $(PREFIX),$(ETCDIR) $(LIBDIR)): - install -d $@ -$(addprefix $(PREFIX),$(DATADIR) $(LOGDIR) $(STATICDIR) $(ELIOMSTATICDIR) $(shell dirname $(CMDPIPE))): - install $(addprefix -o ,$(WWWUSER)) -d $@ - -run.byte: - $(OCSIGENSERVER) $(RUN_DEBUG) -c ${PREFIX}${ETCDIR}/${PROJECT_NAME}.conf -run.opt: - $(OCSIGENSERVER.OPT) $(RUN_DEBUG) -c ${PREFIX}${ETCDIR}/${PROJECT_NAME}.conf - -##---------------------------------------------------------------------- -## Aux - -# Use `eliomdep -sort' only in OCaml>4 -ifeq ($(shell ocamlc -version|cut -c1),4) -eliomdep=$(shell $(ELIOMDEP) $(1) -sort $(2) $(filter %.eliom %.ml,$(3)))) -else -eliomdep=$(3) -endif -objs=$(patsubst %.ml,$(1)/%.$(2),$(patsubst %.eliom,$(1)/%.$(2),$(filter %.eliom %.ml,$(3)))) -depsort=$(call objs,$(1),$(2),$(call eliomdep,$(3),$(4),$(5))) - -##---------------------------------------------------------------------- -## Config files - -FINDLIB_PACKAGES=$(patsubst %,\,$(SERVER_PACKAGES)) -EDIT_WARNING=DON\'T EDIT THIS FILE! It is generated from $(PROJECT_NAME).conf.in, edit that one, or the variables in Makefile.options -SED_ARGS := -e "/^ *%%%/d" -SED_ARGS += -e "s|%%PROJECT_NAME%%|$(PROJECT_NAME)|g" -SED_ARGS += -e "s|%%DATABASE_NAME%%|$(DATABASE_NAME)|g" -SED_ARGS += -e "s|%%DATABASE_USER%%|$(DATABASE_USER)|g" -SED_ARGS += -e "s|%%CMDPIPE%%|%%PREFIX%%$(CMDPIPE)|g" -SED_ARGS += -e "s|%%LOGDIR%%|%%PREFIX%%$(LOGDIR)|g" -SED_ARGS += -e "s|%%DATADIR%%|%%PREFIX%%$(DATADIR)|g" -SED_ARGS += -e "s|%%PERSISTENT_DATA_BACKEND%%|$(PERSISTENT_DATA_BACKEND)|g" -SED_ARGS += -e "s|%%LIBDIR%%|%%PREFIX%%$(LIBDIR)|g" -SED_ARGS += -e "s|%%WARNING%%|$(EDIT_WARNING)|g" -SED_ARGS += -e "s|%%PACKAGES%%|$(FINDLIB_PACKAGES)|g" -SED_ARGS += -e "s|%%ELIOMSTATICDIR%%|%%PREFIX%%$(ELIOMSTATICDIR)|g" -ifeq ($(DEBUG),yes) - SED_ARGS += -e "s|%%DEBUGMODE%%|\|g" -else - SED_ARGS += -e "s|%%DEBUGMODE%%||g" -endif - -LOCAL_SED_ARGS := -e "s|%%PORT%%|$(TEST_PORT)|g" -LOCAL_SED_ARGS += -e "s|%%STATICDIR%%|$(LOCAL_STATIC)|g" -LOCAL_SED_ARGS += -e "s|%%USERGROUP%%||g" -GLOBAL_SED_ARGS := -e "s|%%PORT%%|$(PORT)|g" -GLOBAL_SED_ARGS += -e "s|%%STATICDIR%%|%%PREFIX%%$(STATICDIR)|g" -ifeq ($(WWWUSER)$(WWWGROUP),) - GLOBAL_SED_ARGS += -e "s|%%USERGROUP%%||g" -else - GLOBAL_SED_ARGS += -e "s|%%USERGROUP%%|$(WWWUSER)$(WWWGROUP)|g" -endif - -$(TEST_PREFIX)${ETCDIR}/${PROJECT_NAME}.conf: ${PROJECT_NAME}.conf.in Makefile.options | $(TEST_PREFIX)$(ETCDIR) - sed $(SED_ARGS) $(GLOBAL_SED_ARGS) $< | sed -e "s|%%PREFIX%%|$(PREFIX)|g" > $@ -$(TEST_PREFIX)${ETCDIR}/${PROJECT_NAME}-test.conf: ${PROJECT_NAME}.conf.in Makefile.options | $(TEST_PREFIX)$(ETCDIR) - sed $(SED_ARGS) $(LOCAL_SED_ARGS) $< | sed -e "s|%%PREFIX%%|$(TEST_PREFIX)|g" > $@ - -##---------------------------------------------------------------------- -## Server side compilation - -SERVER_INC := ${addprefix -package ,${SERVER_PACKAGES}} - -${ELIOM_TYPE_DIR}/%.type_mli: %.eliom - ${ELIOMC} -infer ${SERVER_INC} $< - -$(TEST_PREFIX)$(LIBDIR)/$(PROJECT_NAME).cma: $(call objs,$(ELIOM_SERVER_DIR),cmo,$(SERVER_FILES)) | $(TEST_PREFIX)$(LIBDIR) - ${ELIOMC} -a -o $@ $(GENERATE_DEBUG) \ - $(call depsort,$(ELIOM_SERVER_DIR),cmo,-server,$(SERVER_INC),$(SERVER_FILES)) - -$(TEST_PREFIX)$(LIBDIR)/$(PROJECT_NAME).cmxa: $(call objs,$(ELIOM_SERVER_DIR),cmx,$(SERVER_FILES)) | $(TEST_PREFIX)$(LIBDIR) - ${ELIOMOPT} -a -o $@ $(GENERATE_DEBUG) \ - $(call depsort,$(ELIOM_SERVER_DIR),cmx,-server,$(SERVER_INC),$(SERVER_FILES)) - -%.cmxs: %.cmxa - $(ELIOMOPT) -shared -linkall -o $@ $(GENERATE_DEBUG) $< - -${ELIOM_SERVER_DIR}/%.cmi: %.mli - ${ELIOMC} -c ${SERVER_INC} $(GENERATE_DEBUG) $< - -${ELIOM_SERVER_DIR}/%.cmi: %.eliomi - ${ELIOMC} -c ${SERVER_INC} $(GENERATE_DEBUG) $< - -${ELIOM_SERVER_DIR}/%.cmo: %.ml - ${ELIOMC} -c ${SERVER_INC} $(GENERATE_DEBUG) $< -${ELIOM_SERVER_DIR}/%.cmo: %.eliom - ${ELIOMC} -c ${SERVER_INC} $(GENERATE_DEBUG) $< - -${ELIOM_SERVER_DIR}/%.cmx: %.ml - ${ELIOMOPT} -c ${SERVER_INC} $(GENERATE_DEBUG) $< -${ELIOM_SERVER_DIR}/%.cmx: %.eliom - ${ELIOMOPT} -c ${SERVER_INC} $(GENERATE_DEBUG) $< - - -##---------------------------------------------------------------------- -## Client side compilation - -CLIENT_LIBS := ${addprefix -package ,${CLIENT_PACKAGES}} -CLIENT_INC := ${addprefix -package ,${CLIENT_PACKAGES}} - -CLIENT_OBJS := $(filter %.eliom %.ml, $(CLIENT_FILES)) -CLIENT_OBJS := $(patsubst %.eliom,${ELIOM_CLIENT_DIR}/%.cmo, ${CLIENT_OBJS}) -CLIENT_OBJS := $(patsubst %.ml,${ELIOM_CLIENT_DIR}/%.cmo, ${CLIENT_OBJS}) - -$(TEST_PREFIX)$(ELIOMSTATICDIR)/$(PROJECT_NAME).js: $(call objs,$(ELIOM_CLIENT_DIR),cmo,$(CLIENT_FILES)) | $(TEST_PREFIX)$(ELIOMSTATICDIR) - ${JS_OF_ELIOM} -o $@ $(GENERATE_DEBUG) $(CLIENT_INC) $(DEBUG_JS) \ - $(call depsort,$(ELIOM_CLIENT_DIR),cmo,-client,$(CLIENT_INC),$(CLIENT_FILES)) - -${ELIOM_CLIENT_DIR}/%.cmi: %.mli - ${JS_OF_ELIOM} -c ${CLIENT_INC} $(GENERATE_DEBUG) $< - -${ELIOM_CLIENT_DIR}/%.cmo: %.eliom - ${JS_OF_ELIOM} -c ${CLIENT_INC} $(GENERATE_DEBUG) $< -${ELIOM_CLIENT_DIR}/%.cmo: %.ml - ${JS_OF_ELIOM} -c ${CLIENT_INC} $(GENERATE_DEBUG) $< - -${ELIOM_CLIENT_DIR}/%.cmi: %.eliomi - ${JS_OF_ELIOM} -c ${CLIENT_INC} $(GENERATE_DEBUG) $< - -##---------------------------------------------------------------------- -## Dependencies - -include .depend - -.depend: $(patsubst %,$(DEPSDIR)/%.server,$(SERVER_FILES)) $(patsubst %,$(DEPSDIR)/%.client,$(CLIENT_FILES)) - cat $^ > $@ - -$(DEPSDIR)/%.server: % | $(DEPSDIR) - $(ELIOMDEP) -server $(SERVER_INC) $< > $@ - -$(DEPSDIR)/%.client: % | $(DEPSDIR) - $(ELIOMDEP) -client $(CLIENT_INC) $< > $@ - -$(DEPSDIR): - mkdir $@ - -##---------------------------------------------------------------------- -## Clean up - -clean: - -rm -f *.cm[ioax] *.cmxa *.cmxs *.o *.a *.annot - -rm -f *.type_mli - -rm -f ${PROJECT_NAME}.js - -rm -rf ${ELIOM_CLIENT_DIR} ${ELIOM_SERVER_DIR} - -distclean: clean - -rm -rf $(TEST_PREFIX) $(DEPSDIR) .depend diff --git a/pkg/distillery/basic.camlp4/Makefile.options b/pkg/distillery/basic.camlp4/Makefile.options deleted file mode 100644 index 3a451650b1..0000000000 --- a/pkg/distillery/basic.camlp4/Makefile.options +++ /dev/null @@ -1,64 +0,0 @@ - -#---------------------------------------------------------------------- -# SETTINGS FOR THE ELIOM PROJECT %%%PROJECT_NAME%%% -#---------------------------------------------------------------------- - -PROJECT_NAME := %%%PROJECT_NAME%%% - -# Source files for the server -SERVER_FILES := $(wildcard *.eliomi *.eliom) -# Source files for the client -CLIENT_FILES := $(wildcard *.eliomi *.eliom) - -# OCamlfind packages for the server -SERVER_PACKAGES := -# OCamlfind packages for the client -CLIENT_PACKAGES := - -# Directory with files to be statically served -LOCAL_STATIC = static - -# The backend for persistent data. Can be dbm or sqlite. -# Make sure you have the following packages installed: -# - *dbm* if you use dbm --> opam install dbm. -# - *sqlite3* if you use sqlite --> opam install sqlite3. -PERSISTENT_DATA_BACKEND = %%%PROJECT_DB%%% - -# Debug application (yes/no): Debugging info in compilation, -# JavaScript, ocsigenserver -DEBUG := no - -# User to run server with (make run.*) -WWWUSER := www-data -WWWGROUP := www-data - -# Port for running the server (make run.*) -PORT := 80 - -# Port for testing (make test.*) -TEST_PORT := 8080 - -# Root of installation (must end with /) -PREFIX := /usr/local/ - -# Local folder for make test.* (must end with /) -# Do not add files manually in this directory. -# It is just here to test your installation before installing in / -TEST_PREFIX := local/ - -# The installation tree (relative to $(PREFIX) when -# installing/running or $(TEST_PREFIX) when testing). -# Configuration file $(PROJECT_NAME).conf -ETCDIR := etc/${PROJECT_NAME} -# Project's library $(PROJECT_NAME).cma (cmxs) -LIBDIR := lib/${PROJECT_NAME} -# Command pipe, eg. $ echo reload > $(INSTALL_PREFIX)$(CMDPIPE) -CMDPIPE := var/run/${PROJECT_NAME}-cmd -# Ocsigenserver's logging files -LOGDIR := var/log/${PROJECT_NAME} -# Ocsigenserver's persistent data files -DATADIR := var/data/${PROJECT_NAME} -# Copy of $(LOCAL_STATIC) -STATICDIR := var/www/${PROJECT_NAME}/static -# Project's JavaScript file -ELIOMSTATICDIR := var/www/${PROJECT_NAME}/eliom diff --git a/pkg/distillery/basic.camlp4/PROJECT_NAME.conf.in b/pkg/distillery/basic.camlp4/PROJECT_NAME.conf.in deleted file mode 100644 index 13a8a1fdbb..0000000000 --- a/pkg/distillery/basic.camlp4/PROJECT_NAME.conf.in +++ /dev/null @@ -1,28 +0,0 @@ -%%% This is the template for your configuration file. The %%VALUES%% below are -%%% taken from the Makefile to generate the actual configuration files. -%%% This comment will disappear. - - - - %%PORT%% - %%% Only set for running, not for testing - %%USERGROUP%% - %%LOGDIR%% - %%DATADIR%% - utf-8 - %%% Only set when debugging - %%DEBUGMODE%% - %%CMDPIPE%% - - - - %%% This will include the packages defined as SERVER_PACKAGES in your Makefile: - %%PACKAGES%% - - - - - - - - diff --git a/pkg/distillery/basic.camlp4/PROJECT_NAME.eliom b/pkg/distillery/basic.camlp4/PROJECT_NAME.eliom deleted file mode 100644 index 0f7eec755e..0000000000 --- a/pkg/distillery/basic.camlp4/PROJECT_NAME.eliom +++ /dev/null @@ -1,30 +0,0 @@ -{shared{ - open Eliom_lib - open Eliom_content - open Html.D -}} - -module %%%MODULE_NAME%%%_app = - Eliom_registration.App ( - struct - let application_name = "%%%PROJECT_NAME%%%" - let global_data_path = None - end) - -let main_service = - Eliom_service.create - ~path:(Eliom_service.Path []) - ~meth:(Eliom_service.Get Eliom_parameter.unit) - () - -let () = - %%%MODULE_NAME%%%_app.register - ~service:main_service - (fun () () -> - Lwt.return - (Eliom_tools.F.html - ~title:"%%%PROJECT_NAME%%%" - ~css:[["css";"%%%PROJECT_NAME%%%.css"]] - Html.F.(body [ - h1 [pcdata "Welcome from Eliom's distillery!"]; - ]))) diff --git a/pkg/distillery/basic.camlp4/README b/pkg/distillery/basic.camlp4/README deleted file mode 100644 index 6c48aa8af2..0000000000 --- a/pkg/distillery/basic.camlp4/README +++ /dev/null @@ -1,82 +0,0 @@ - -Instructions -============ - -This project is (initially) generated by eliom-distillery as the basic -project "%%%PROJECT_NAME%%%". - -Generally, you can compile it and run ocsigenserver on it by - $ make test.byte (or test.opt) -See below for other useful targets for make. - -Generated files ---------------- - -The following files in this directory have been generated by -eliom-distillery: - - - %%%PROJECT_NAME%%%.eliom - This is your initial source file. -%%%ifdef OCAML4%%% - All Eliom files (*.eliom, *.eliomi) in this directory are - automatically considered. To add a .ml/.mli file to your project, - append it to the variable SERVER_FILES or CLIENT_FILES. -%%%endif%%% -%%%ifdef OCAML3%%% - To add more source files (.ml,.mli,.eliom,.eliomi) to your project, - add it to the variables SERVER_FILES and/or CLIENT_FILES. -%%%endif%%% - - - static/ - The content of this folder is statically served. Put your CSS or - additional JavaScript files here! - - - Makefile.options - Configure your project here! - - - %%%PROJECT_NAME%%%.conf.in - This file is a template for the configuration file for - ocsigenserver. You will rarely have to edit itself - it takes its - variables from the Makefile.options. This way, the installation - rules and the configuration files are synchronized with respect to - the different folders. - - - Makefile - This contains all rules necessary to build, test, and run your - Eliom application. You better don't touch it ;) See below for the - relevant targets. - - - local/ - This directory is the target of the temporary installation of - your application, to test locally before doing a system-wide - installation in /. Do not put anything manually here. - - - README - Not completely describable here. - - -Makefile targets ----------------- - -Here's some help on how to work with this basic distillery project: - - - Test your application by compiling it and running ocsigenserver locally - $ make test.byte (or test.opt) - - - Compile it only - $ make all (or byte or opt) - - - Deploy your project on your system - $ sudo make install (or install.byte or install.opt) - - - Run the server on the deployed project - $ sudo make run.byte (or run.opt) - - If WWWUSER in the Makefile.options is you, you don't need the - `sudo'. If Eliom isn't installed globally, however, you need to - re-export some environment variables to make this work: - $ sudo PATH=$PATH OCAMLPATH=$OCAMLPATH LD_LIBRARY_PATH=$LD_LIBRARY_PATH make run.byte/run.opt - - - If you need a findlib package in your project, add it to the - variables SERVER_PACKAGES and/or CLIENT_PACKAGES. The configuration - file will be automatically updated. diff --git a/pkg/distillery/basic.camlp4/static!css!PROJECT_NAME.css b/pkg/distillery/basic.camlp4/static!css!PROJECT_NAME.css deleted file mode 100644 index b71fa50add..0000000000 --- a/pkg/distillery/basic.camlp4/static!css!PROJECT_NAME.css +++ /dev/null @@ -1,3 +0,0 @@ -* { - font-family: sans-serif; -} diff --git a/pkg/distillery/basic.ppx/.ocp-indent b/pkg/distillery/basic.ppx/.ocp-indent deleted file mode 100644 index ea41aa5457..0000000000 --- a/pkg/distillery/basic.ppx/.ocp-indent +++ /dev/null @@ -1,5 +0,0 @@ -normal -with=0 -syntax=lwt mll -max_indent=2 -ppx_stritem_ext=0 diff --git a/pkg/distillery/basic.ppx/Makefile b/pkg/distillery/basic.ppx/Makefile deleted file mode 100644 index 8c47d3983d..0000000000 --- a/pkg/distillery/basic.ppx/Makefile +++ /dev/null @@ -1,240 +0,0 @@ - -##---------------------------------------------------------------------- -## DISCLAIMER -## -## This file contains the rules to make an Eliom project. The project is -## configured through the variables in the file Makefile.options. -##---------------------------------------------------------------------- - -include Makefile.options - -##---------------------------------------------------------------------- -## Internals - -## Required binaries -ELIOMC := eliomc -ppx -ELIOMOPT := eliomopt -ppx -JS_OF_ELIOM := js_of_eliom -ppx -ELIOMDEP := eliomdep -OCSIGENSERVER := ocsigenserver -OCSIGENSERVER.OPT := ocsigenserver.opt - -## Where to put intermediate object files. -## - ELIOM_{SERVER,CLIENT}_DIR must be distinct -## - ELIOM_CLIENT_DIR must not be the local dir. -## - ELIOM_SERVER_DIR could be ".", but you need to -## remove it from the "clean" rules... -export ELIOM_SERVER_DIR := _server -export ELIOM_CLIENT_DIR := _client -export ELIOM_TYPE_DIR := _server -DEPSDIR := _deps - -ifeq ($(DEBUG),yes) - GENERATE_DEBUG ?= -g - RUN_DEBUG ?= "-v" - DEBUG_JS ?= -jsopt -pretty -jsopt -noinline -jsopt -debuginfo -endif - -##---------------------------------------------------------------------- -## General - -.PHONY: all byte opt -all: byte opt -byte opt:: $(TEST_PREFIX)$(ELIOMSTATICDIR)/${PROJECT_NAME}.js -byte opt:: $(TEST_PREFIX)$(ETCDIR)/$(PROJECT_NAME).conf -byte opt:: $(TEST_PREFIX)$(ETCDIR)/$(PROJECT_NAME)-test.conf -byte:: $(TEST_PREFIX)$(LIBDIR)/${PROJECT_NAME}.cma -opt:: $(TEST_PREFIX)$(LIBDIR)/${PROJECT_NAME}.cmxs - -DIST_DIRS = $(ETCDIR) $(DATADIR) $(LIBDIR) $(LOGDIR) $(STATICDIR) $(ELIOMSTATICDIR) $(shell dirname $(CMDPIPE)) - -##---------------------------------------------------------------------- -## Testing - -DIST_FILES = $(ELIOMSTATICDIR)/$(PROJECT_NAME).js $(LIBDIR)/$(PROJECT_NAME).cma - -.PHONY: test.byte test.opt -test.byte: $(addprefix $(TEST_PREFIX),$(ETCDIR)/$(PROJECT_NAME)-test.conf $(DIST_DIRS) $(DIST_FILES)) - $(OCSIGENSERVER) $(RUN_DEBUG) -c $< -test.opt: $(addprefix $(TEST_PREFIX),$(ETCDIR)/$(PROJECT_NAME)-test.conf $(DIST_DIRS) $(patsubst %.cma,%.cmxs, $(DIST_FILES))) - $(OCSIGENSERVER.OPT) $(RUN_DEBUG) -c $< - -$(addprefix $(TEST_PREFIX), $(DIST_DIRS)): - mkdir -p $@ - -##---------------------------------------------------------------------- -## Installing & Running - -.PHONY: install install.byte install.byte install.opt install.static install.etc install.lib install.lib.byte install.lib.opt run.byte run.opt -install: install.byte install.opt -install.byte: install.lib.byte install.etc install.static | $(addprefix $(PREFIX),$(DATADIR) $(LOGDIR) $(shell dirname $(CMDPIPE))) -install.opt: install.lib.opt install.etc install.static | $(addprefix $(PREFIX),$(DATADIR) $(LOGDIR) $(shell dirname $(CMDPIPE))) -install.lib: install.lib.byte install.lib.opt -install.lib.byte: $(TEST_PREFIX)$(LIBDIR)/$(PROJECT_NAME).cma | $(PREFIX)$(LIBDIR) - install $< $(PREFIX)$(LIBDIR) -install.lib.opt: $(TEST_PREFIX)$(LIBDIR)/$(PROJECT_NAME).cmxs | $(PREFIX)$(LIBDIR) - install $< $(PREFIX)$(LIBDIR) -install.static: $(TEST_PREFIX)$(ELIOMSTATICDIR)/$(PROJECT_NAME).js | $(PREFIX)$(STATICDIR) $(PREFIX)$(ELIOMSTATICDIR) - cp -r $(LOCAL_STATIC)/* $(PREFIX)$(STATICDIR) - [ -z $(WWWUSER) ] || chown -R $(WWWUSER) $(PREFIX)$(STATICDIR) - install $(addprefix -o ,$(WWWUSER)) $< $(PREFIX)$(ELIOMSTATICDIR) -install.etc: $(TEST_PREFIX)$(ETCDIR)/$(PROJECT_NAME).conf | $(PREFIX)$(ETCDIR) - install $< $(PREFIX)$(ETCDIR)/$(PROJECT_NAME).conf - -.PHONY: -print-install-files: - @echo $(PREFIX)$(LIBDIR) - @echo $(PREFIX)$(STATICDIR) - @echo $(PREFIX)$(ELIOMSTATICDIR) - @echo $(PREFIX)$(ETCDIR) - -$(addprefix $(PREFIX),$(ETCDIR) $(LIBDIR)): - install -d $@ -$(addprefix $(PREFIX),$(DATADIR) $(LOGDIR) $(STATICDIR) $(ELIOMSTATICDIR) $(shell dirname $(CMDPIPE))): - install $(addprefix -o ,$(WWWUSER)) -d $@ - -run.byte: - $(OCSIGENSERVER) $(RUN_DEBUG) -c ${PREFIX}${ETCDIR}/${PROJECT_NAME}.conf -run.opt: - $(OCSIGENSERVER.OPT) $(RUN_DEBUG) -c ${PREFIX}${ETCDIR}/${PROJECT_NAME}.conf - -##---------------------------------------------------------------------- -## Aux - -# Use `eliomdep -sort' only in OCaml>4 -ifeq ($(shell ocamlc -version|cut -c1),4) -eliomdep=$(shell $(ELIOMDEP) $(1) -ppx -sort $(2) $(filter %.eliom %.ml,$(3)))) -else -eliomdep=$(3) -endif -objs=$(patsubst %.ml,$(1)/%.$(2),$(patsubst %.eliom,$(1)/%.$(2),$(filter %.eliom %.ml,$(3)))) -depsort=$(call objs,$(1),$(2),$(call eliomdep,$(3),$(4),$(5))) - -##---------------------------------------------------------------------- -## Config files - -FINDLIB_PACKAGES=$(patsubst %,\,$(SERVER_PACKAGES)) -EDIT_WARNING=DON\'T EDIT THIS FILE! It is generated from $(PROJECT_NAME).conf.in, edit that one, or the variables in Makefile.options -SED_ARGS := -e "/^ *%%%/d" -SED_ARGS += -e "s|%%PROJECT_NAME%%|$(PROJECT_NAME)|g" -SED_ARGS += -e "s|%%DATABASE_NAME%%|$(DATABASE_NAME)|g" -SED_ARGS += -e "s|%%DATABASE_USER%%|$(DATABASE_USER)|g" -SED_ARGS += -e "s|%%CMDPIPE%%|%%PREFIX%%$(CMDPIPE)|g" -SED_ARGS += -e "s|%%LOGDIR%%|%%PREFIX%%$(LOGDIR)|g" -SED_ARGS += -e "s|%%DATADIR%%|%%PREFIX%%$(DATADIR)|g" -SED_ARGS += -e "s|%%PERSISTENT_DATA_BACKEND%%|$(PERSISTENT_DATA_BACKEND)|g" -SED_ARGS += -e "s|%%LIBDIR%%|%%PREFIX%%$(LIBDIR)|g" -SED_ARGS += -e "s|%%WARNING%%|$(EDIT_WARNING)|g" -SED_ARGS += -e "s|%%PACKAGES%%|$(FINDLIB_PACKAGES)|g" -SED_ARGS += -e "s|%%ELIOMSTATICDIR%%|%%PREFIX%%$(ELIOMSTATICDIR)|g" -ifeq ($(DEBUG),yes) - SED_ARGS += -e "s|%%DEBUGMODE%%|\|g" -else - SED_ARGS += -e "s|%%DEBUGMODE%%||g" -endif - -LOCAL_SED_ARGS := -e "s|%%PORT%%|$(TEST_PORT)|g" -LOCAL_SED_ARGS += -e "s|%%STATICDIR%%|$(LOCAL_STATIC)|g" -LOCAL_SED_ARGS += -e "s|%%USERGROUP%%||g" -GLOBAL_SED_ARGS := -e "s|%%PORT%%|$(PORT)|g" -GLOBAL_SED_ARGS += -e "s|%%STATICDIR%%|%%PREFIX%%$(STATICDIR)|g" -ifeq ($(WWWUSER)$(WWWGROUP),) - GLOBAL_SED_ARGS += -e "s|%%USERGROUP%%||g" -else - GLOBAL_SED_ARGS += -e "s|%%USERGROUP%%|$(WWWUSER)$(WWWGROUP)|g" -endif - -$(TEST_PREFIX)${ETCDIR}/${PROJECT_NAME}.conf: ${PROJECT_NAME}.conf.in Makefile.options | $(TEST_PREFIX)$(ETCDIR) - sed $(SED_ARGS) $(GLOBAL_SED_ARGS) $< | sed -e "s|%%PREFIX%%|$(PREFIX)|g" > $@ -$(TEST_PREFIX)${ETCDIR}/${PROJECT_NAME}-test.conf: ${PROJECT_NAME}.conf.in Makefile.options | $(TEST_PREFIX)$(ETCDIR) - sed $(SED_ARGS) $(LOCAL_SED_ARGS) $< | sed -e "s|%%PREFIX%%|$(TEST_PREFIX)|g" > $@ - -##---------------------------------------------------------------------- -## Server side compilation - -SERVER_INC := ${addprefix -package ,${SERVER_PACKAGES}} - -${ELIOM_TYPE_DIR}/%.type_mli: %.eliom - ${ELIOMC} -infer ${SERVER_INC} $< - -$(TEST_PREFIX)$(LIBDIR)/$(PROJECT_NAME).cma: $(call objs,$(ELIOM_SERVER_DIR),cmo,$(SERVER_FILES)) | $(TEST_PREFIX)$(LIBDIR) - ${ELIOMC} -a -o $@ $(GENERATE_DEBUG) \ - $(call depsort,$(ELIOM_SERVER_DIR),cmo,-server,$(SERVER_INC),$(SERVER_FILES)) - -$(TEST_PREFIX)$(LIBDIR)/$(PROJECT_NAME).cmxa: $(call objs,$(ELIOM_SERVER_DIR),cmx,$(SERVER_FILES)) | $(TEST_PREFIX)$(LIBDIR) - ${ELIOMOPT} -a -o $@ $(GENERATE_DEBUG) \ - $(call depsort,$(ELIOM_SERVER_DIR),cmx,-server,$(SERVER_INC),$(SERVER_FILES)) - -%.cmxs: %.cmxa - $(ELIOMOPT) -shared -linkall -o $@ $(GENERATE_DEBUG) $< - -${ELIOM_SERVER_DIR}/%.cmi: %.mli - ${ELIOMC} -c ${SERVER_INC} $(GENERATE_DEBUG) $< - -${ELIOM_SERVER_DIR}/%.cmi: %.eliomi - ${ELIOMC} -c ${SERVER_INC} $(GENERATE_DEBUG) $< - -${ELIOM_SERVER_DIR}/%.cmo: %.ml - ${ELIOMC} -c ${SERVER_INC} $(GENERATE_DEBUG) $< -${ELIOM_SERVER_DIR}/%.cmo: %.eliom - ${ELIOMC} -c ${SERVER_INC} $(GENERATE_DEBUG) $< - -${ELIOM_SERVER_DIR}/%.cmx: %.ml - ${ELIOMOPT} -c ${SERVER_INC} $(GENERATE_DEBUG) $< -${ELIOM_SERVER_DIR}/%.cmx: %.eliom - ${ELIOMOPT} -c ${SERVER_INC} $(GENERATE_DEBUG) $< - - -##---------------------------------------------------------------------- -## Client side compilation - -CLIENT_LIBS := ${addprefix -package ,${CLIENT_PACKAGES}} -CLIENT_INC := ${addprefix -package ,${CLIENT_PACKAGES}} - -CLIENT_OBJS := $(filter %.eliom %.ml, $(CLIENT_FILES)) -CLIENT_OBJS := $(patsubst %.eliom,${ELIOM_CLIENT_DIR}/%.cmo, ${CLIENT_OBJS}) -CLIENT_OBJS := $(patsubst %.ml,${ELIOM_CLIENT_DIR}/%.cmo, ${CLIENT_OBJS}) - -$(TEST_PREFIX)$(ELIOMSTATICDIR)/$(PROJECT_NAME).js: $(call objs,$(ELIOM_CLIENT_DIR),cmo,$(CLIENT_FILES)) | $(TEST_PREFIX)$(ELIOMSTATICDIR) - ${JS_OF_ELIOM} -o $@ $(GENERATE_DEBUG) $(CLIENT_INC) $(DEBUG_JS) \ - $(call depsort,$(ELIOM_CLIENT_DIR),cmo,-client,$(CLIENT_INC),$(CLIENT_FILES)) - -${ELIOM_CLIENT_DIR}/%.cmi: %.mli - ${JS_OF_ELIOM} -c ${CLIENT_INC} $(GENERATE_DEBUG) $< - -${ELIOM_CLIENT_DIR}/%.cmo: %.eliom - ${JS_OF_ELIOM} -c ${CLIENT_INC} $(GENERATE_DEBUG) $< -${ELIOM_CLIENT_DIR}/%.cmo: %.ml - ${JS_OF_ELIOM} -c ${CLIENT_INC} $(GENERATE_DEBUG) $< - -${ELIOM_CLIENT_DIR}/%.cmi: %.eliomi - ${JS_OF_ELIOM} -c ${CLIENT_INC} $(GENERATE_DEBUG) $< - -##---------------------------------------------------------------------- -## Dependencies - -include .depend - -.depend: $(patsubst %,$(DEPSDIR)/%.server,$(SERVER_FILES)) $(patsubst %,$(DEPSDIR)/%.client,$(CLIENT_FILES)) - cat $^ > $@ - -$(DEPSDIR)/%.server: % | $(DEPSDIR) - $(ELIOMDEP) -server -ppx $(SERVER_INC) $< > $@ - -$(DEPSDIR)/%.client: % | $(DEPSDIR) - $(ELIOMDEP) -client -ppx $(CLIENT_INC) $< > $@ - -$(DEPSDIR): - mkdir $@ - -##---------------------------------------------------------------------- -## Clean up - -clean: - -rm -f *.cm[ioax] *.cmxa *.cmxs *.o *.a *.annot - -rm -f *.type_mli - -rm -f ${PROJECT_NAME}.js - -rm -rf ${ELIOM_CLIENT_DIR} ${ELIOM_SERVER_DIR} - -distclean: clean - -rm -rf $(TEST_PREFIX) $(DEPSDIR) .depend diff --git a/pkg/distillery/basic.ppx/Makefile.options b/pkg/distillery/basic.ppx/Makefile.options deleted file mode 100644 index 791a4a6fe0..0000000000 --- a/pkg/distillery/basic.ppx/Makefile.options +++ /dev/null @@ -1,64 +0,0 @@ - -#---------------------------------------------------------------------- -# SETTINGS FOR THE ELIOM PROJECT %%%PROJECT_NAME%%% -#---------------------------------------------------------------------- - -PROJECT_NAME := %%%PROJECT_NAME%%% - -# Source files for the server -SERVER_FILES := $(wildcard *.eliomi *.eliom) -# Source files for the client -CLIENT_FILES := $(wildcard *.eliomi *.eliom) - -# OCamlfind packages for the server -SERVER_PACKAGES := lwt_ppx js_of_ocaml-ppx.deriving -# OCamlfind packages for the client -CLIENT_PACKAGES := lwt_ppx js_of_ocaml-ppx js_of_ocaml-ppx.deriving - -# Directory with files to be statically served -LOCAL_STATIC = static - -# The backend for persistent data. Can be dbm or sqlite. -# Make sure you have the following packages installed -# - *dbm* if you use dbm --> opam install dbm. -# - *sqlite3* if you use sqlite --> opam install sqlite3. -PERSISTENT_DATA_BACKEND = %%%PROJECT_DB%%% - -# Debug application (yes/no): Debugging info in compilation, -# JavaScript, ocsigenserver -DEBUG := no - -# User to run server with (make run.*) -WWWUSER := www-data -WWWGROUP := www-data - -# Port for running the server (make run.*) -PORT := 80 - -# Port for testing (make test.*) -TEST_PORT := 8080 - -# Root of installation (must end with /) -PREFIX := /usr/local/ - -# Local folder for make test.* (must end with /) -# Do not add files manually in this directory. -# It is just here to test your installation before installing in / -TEST_PREFIX := local/ - -# The installation tree (relative to $(PREFIX) when -# installing/running or $(TEST_PREFIX) when testing). -# Configuration file $(PROJECT_NAME).conf -ETCDIR := etc/${PROJECT_NAME} -# Project's library $(PROJECT_NAME).cma (cmxs) -LIBDIR := lib/${PROJECT_NAME} -# Command pipe, eg. $ echo reload > $(INSTALL_PREFIX)$(CMDPIPE) -CMDPIPE := var/run/${PROJECT_NAME}-cmd -# Ocsigenserver's logging files -LOGDIR := var/log/${PROJECT_NAME} -# Ocsigenserver's persistent data files -DATADIR := var/data/${PROJECT_NAME} -# Copy of $(LOCAL_STATIC) -STATICDIR := var/www/${PROJECT_NAME}/static -# Project's JavaScript file -ELIOMSTATICDIR := var/www/${PROJECT_NAME}/eliom diff --git a/pkg/distillery/basic.ppx/PROJECT_NAME.conf.in b/pkg/distillery/basic.ppx/PROJECT_NAME.conf.in deleted file mode 100644 index 13a8a1fdbb..0000000000 --- a/pkg/distillery/basic.ppx/PROJECT_NAME.conf.in +++ /dev/null @@ -1,28 +0,0 @@ -%%% This is the template for your configuration file. The %%VALUES%% below are -%%% taken from the Makefile to generate the actual configuration files. -%%% This comment will disappear. - - - - %%PORT%% - %%% Only set for running, not for testing - %%USERGROUP%% - %%LOGDIR%% - %%DATADIR%% - utf-8 - %%% Only set when debugging - %%DEBUGMODE%% - %%CMDPIPE%% - - - - %%% This will include the packages defined as SERVER_PACKAGES in your Makefile: - %%PACKAGES%% - - - - - - - - diff --git a/pkg/distillery/basic.ppx/PROJECT_NAME.eliom b/pkg/distillery/basic.ppx/PROJECT_NAME.eliom deleted file mode 100644 index 77ec3706a7..0000000000 --- a/pkg/distillery/basic.ppx/PROJECT_NAME.eliom +++ /dev/null @@ -1,30 +0,0 @@ -[%%shared - open Eliom_lib - open Eliom_content - open Html.D -] - -module %%%MODULE_NAME%%%_app = - Eliom_registration.App ( - struct - let application_name = "%%%PROJECT_NAME%%%" - let global_data_path = None - end) - -let main_service = - Eliom_service.create - ~path:(Eliom_service.Path []) - ~meth:(Eliom_service.Get Eliom_parameter.unit) - () - -let () = - %%%MODULE_NAME%%%_app.register - ~service:main_service - (fun () () -> - Lwt.return - (Eliom_tools.F.html - ~title:"%%%PROJECT_NAME%%%" - ~css:[["css";"%%%PROJECT_NAME%%%.css"]] - Html.F.(body [ - h1 [pcdata "Welcome from Eliom's distillery!"]; - ]))) diff --git a/pkg/distillery/basic.ppx/README b/pkg/distillery/basic.ppx/README deleted file mode 100644 index 6c48aa8af2..0000000000 --- a/pkg/distillery/basic.ppx/README +++ /dev/null @@ -1,82 +0,0 @@ - -Instructions -============ - -This project is (initially) generated by eliom-distillery as the basic -project "%%%PROJECT_NAME%%%". - -Generally, you can compile it and run ocsigenserver on it by - $ make test.byte (or test.opt) -See below for other useful targets for make. - -Generated files ---------------- - -The following files in this directory have been generated by -eliom-distillery: - - - %%%PROJECT_NAME%%%.eliom - This is your initial source file. -%%%ifdef OCAML4%%% - All Eliom files (*.eliom, *.eliomi) in this directory are - automatically considered. To add a .ml/.mli file to your project, - append it to the variable SERVER_FILES or CLIENT_FILES. -%%%endif%%% -%%%ifdef OCAML3%%% - To add more source files (.ml,.mli,.eliom,.eliomi) to your project, - add it to the variables SERVER_FILES and/or CLIENT_FILES. -%%%endif%%% - - - static/ - The content of this folder is statically served. Put your CSS or - additional JavaScript files here! - - - Makefile.options - Configure your project here! - - - %%%PROJECT_NAME%%%.conf.in - This file is a template for the configuration file for - ocsigenserver. You will rarely have to edit itself - it takes its - variables from the Makefile.options. This way, the installation - rules and the configuration files are synchronized with respect to - the different folders. - - - Makefile - This contains all rules necessary to build, test, and run your - Eliom application. You better don't touch it ;) See below for the - relevant targets. - - - local/ - This directory is the target of the temporary installation of - your application, to test locally before doing a system-wide - installation in /. Do not put anything manually here. - - - README - Not completely describable here. - - -Makefile targets ----------------- - -Here's some help on how to work with this basic distillery project: - - - Test your application by compiling it and running ocsigenserver locally - $ make test.byte (or test.opt) - - - Compile it only - $ make all (or byte or opt) - - - Deploy your project on your system - $ sudo make install (or install.byte or install.opt) - - - Run the server on the deployed project - $ sudo make run.byte (or run.opt) - - If WWWUSER in the Makefile.options is you, you don't need the - `sudo'. If Eliom isn't installed globally, however, you need to - re-export some environment variables to make this work: - $ sudo PATH=$PATH OCAMLPATH=$OCAMLPATH LD_LIBRARY_PATH=$LD_LIBRARY_PATH make run.byte/run.opt - - - If you need a findlib package in your project, add it to the - variables SERVER_PACKAGES and/or CLIENT_PACKAGES. The configuration - file will be automatically updated. diff --git a/pkg/distillery/basic.ppx/static!css!PROJECT_NAME.css b/pkg/distillery/basic.ppx/static!css!PROJECT_NAME.css deleted file mode 100644 index b71fa50add..0000000000 --- a/pkg/distillery/basic.ppx/static!css!PROJECT_NAME.css +++ /dev/null @@ -1,3 +0,0 @@ -* { - font-family: sans-serif; -} diff --git a/pkg/etc/mime.types b/pkg/etc/mime.types deleted file mode 100644 index 3485692d11..0000000000 --- a/pkg/etc/mime.types +++ /dev/null @@ -1,592 +0,0 @@ -# This is a comment. I love comments. - -# This file controls what Internet media types are sent to the client for -# given file extension(s). Sending the correct media type to the client -# is important so they know how to handle the content of the file. -# Extra types can either be added here or by using an AddType directive -# in your config files. For more information about Internet media types, -# please read RFC 2045, 2046, 2047, 2048, and 2077. The Internet media type -# registry is at . - -# MIME type Extensions -application/activemessage -application/andrew-inset ez -application/applefile -application/atom+xml atom -application/atomicmail -application/batch-smtp -application/beep+xml -application/cals-1840 -application/cnrp+xml -application/commonground -application/cpl+xml -application/cybercash -application/dca-rft -application/dec-dx -application/dvcs -application/edi-consent -application/edifact -application/edi-x12 -application/eshop -application/font-tdpfr -application/http -application/hyperstudio -application/iges -application/index -application/index.cmd -application/index.obj -application/index.response -application/index.vnd -application/iotp -application/ipp -application/isup -application/mac-binhex40 hqx -application/mac-compactpro cpt -application/macwriteii -application/marc -application/mathematica -application/mathml+xml mathml -application/msword doc -application/news-message-id -application/news-transmission -application/ocsp-request -application/ocsp-response -application/octet-stream bin dms lha lzh exe class so dll dmg -application/oda oda -application/ogg ogg -application/parityfec -application/pdf pdf -application/pgp-encrypted -application/pgp-keys -application/pgp-signature -application/pkcs10 -application/pkcs7-mime -application/pkcs7-signature -application/pkix-cert -application/pkix-crl -application/pkixcmp -application/postscript ai eps ps -application/prs.alvestrand.titrax-sheet -application/prs.cww -application/prs.nprend -application/prs.plucker -application/qsig -application/rdf+xml rdf -application/reginfo+xml -application/remote-printing -application/riscos -application/rtf -application/sdp -application/set-payment -application/set-payment-initiation -application/set-registration -application/set-registration-initiation -application/sgml -application/sgml-open-catalog -application/sieve -application/slate -application/smil smi smil -application/srgs gram -application/srgs+xml grxml -application/timestamp-query -application/timestamp-reply -application/tve-trigger -application/vemmi -application/vnd.3gpp.pic-bw-large -application/vnd.3gpp.pic-bw-small -application/vnd.3gpp.pic-bw-var -application/vnd.3gpp.sms -application/vnd.3m.post-it-notes -application/vnd.accpac.simply.aso -application/vnd.accpac.simply.imp -application/vnd.acucobol -application/vnd.acucorp -application/vnd.adobe.xfdf -application/vnd.aether.imp -application/vnd.amiga.ami -application/vnd.anser-web-certificate-issue-initiation -application/vnd.anser-web-funds-transfer-initiation -application/vnd.audiograph -application/vnd.blueice.multipass -application/vnd.bmi -application/vnd.businessobjects -application/vnd.canon-cpdl -application/vnd.canon-lips -application/vnd.cinderella -application/vnd.claymore -application/vnd.commerce-battelle -application/vnd.commonspace -application/vnd.contact.cmsg -application/vnd.cosmocaller -application/vnd.criticaltools.wbs+xml -application/vnd.ctc-posml -application/vnd.cups-postscript -application/vnd.cups-raster -application/vnd.cups-raw -application/vnd.curl -application/vnd.cybank -application/vnd.data-vision.rdz -application/vnd.dna -application/vnd.dpgraph -application/vnd.dreamfactory -application/vnd.dxr -application/vnd.ecdis-update -application/vnd.ecowin.chart -application/vnd.ecowin.filerequest -application/vnd.ecowin.fileupdate -application/vnd.ecowin.series -application/vnd.ecowin.seriesrequest -application/vnd.ecowin.seriesupdate -application/vnd.enliven -application/vnd.epson.esf -application/vnd.epson.msf -application/vnd.epson.quickanime -application/vnd.epson.salt -application/vnd.epson.ssf -application/vnd.ericsson.quickcall -application/vnd.eudora.data -application/vnd.fdf -application/vnd.ffsns -application/vnd.fints -application/vnd.flographit -application/vnd.framemaker -application/vnd.fsc.weblaunch -application/vnd.fujitsu.oasys -application/vnd.fujitsu.oasys2 -application/vnd.fujitsu.oasys3 -application/vnd.fujitsu.oasysgp -application/vnd.fujitsu.oasysprs -application/vnd.fujixerox.ddd -application/vnd.fujixerox.docuworks -application/vnd.fujixerox.docuworks.binder -application/vnd.fut-misnet -application/vnd.grafeq -application/vnd.groove-account -application/vnd.groove-help -application/vnd.groove-identity-message -application/vnd.groove-injector -application/vnd.groove-tool-message -application/vnd.groove-tool-template -application/vnd.groove-vcard -application/vnd.hbci -application/vnd.hhe.lesson-player -application/vnd.hp-hpgl -application/vnd.hp-hpid -application/vnd.hp-hps -application/vnd.hp-pcl -application/vnd.hp-pclxl -application/vnd.httphone -application/vnd.hzn-3d-crossword -application/vnd.ibm.afplinedata -application/vnd.ibm.electronic-media -application/vnd.ibm.minipay -application/vnd.ibm.modcap -application/vnd.ibm.rights-management -application/vnd.ibm.secure-container -application/vnd.informix-visionary -application/vnd.intercon.formnet -application/vnd.intertrust.digibox -application/vnd.intertrust.nncp -application/vnd.intu.qbo -application/vnd.intu.qfx -application/vnd.irepository.package+xml -application/vnd.is-xpr -application/vnd.japannet-directory-service -application/vnd.japannet-jpnstore-wakeup -application/vnd.japannet-payment-wakeup -application/vnd.japannet-registration -application/vnd.japannet-registration-wakeup -application/vnd.japannet-setstore-wakeup -application/vnd.japannet-verification -application/vnd.japannet-verification-wakeup -application/vnd.jisp -application/vnd.kde.karbon -application/vnd.kde.kchart -application/vnd.kde.kformula -application/vnd.kde.kivio -application/vnd.kde.kontour -application/vnd.kde.kpresenter -application/vnd.kde.kspread -application/vnd.kde.kword -application/vnd.kenameaapp -application/vnd.koan -application/vnd.liberty-request+xml -application/vnd.llamagraphics.life-balance.desktop -application/vnd.llamagraphics.life-balance.exchange+xml -application/vnd.lotus-1-2-3 -application/vnd.lotus-approach -application/vnd.lotus-freelance -application/vnd.lotus-notes -application/vnd.lotus-organizer -application/vnd.lotus-screencam -application/vnd.lotus-wordpro -application/vnd.mcd -application/vnd.mediastation.cdkey -application/vnd.meridian-slingshot -application/vnd.micrografx.flo -application/vnd.micrografx.igx -application/vnd.mif mif -application/vnd.minisoft-hp3000-save -application/vnd.mitsubishi.misty-guard.trustweb -application/vnd.mobius.daf -application/vnd.mobius.dis -application/vnd.mobius.mbk -application/vnd.mobius.mqy -application/vnd.mobius.msl -application/vnd.mobius.plc -application/vnd.mobius.txf -application/vnd.mophun.application -application/vnd.mophun.certificate -application/vnd.motorola.flexsuite -application/vnd.motorola.flexsuite.adsi -application/vnd.motorola.flexsuite.fis -application/vnd.motorola.flexsuite.gotap -application/vnd.motorola.flexsuite.kmr -application/vnd.motorola.flexsuite.ttc -application/vnd.motorola.flexsuite.wem -application/vnd.mozilla.xul+xml xul -application/vnd.ms-artgalry -application/vnd.ms-asf -application/vnd.ms-excel xls -application/vnd.ms-lrm -application/vnd.ms-powerpoint ppt -application/vnd.ms-project -application/vnd.ms-tnef -application/vnd.ms-works -application/vnd.ms-wpl -application/vnd.mseq -application/vnd.msign -application/vnd.music-niff -application/vnd.musician -application/vnd.netfpx -application/vnd.noblenet-directory -application/vnd.noblenet-sealer -application/vnd.noblenet-web -application/vnd.novadigm.edm -application/vnd.novadigm.edx -application/vnd.novadigm.ext -application/vnd.obn -application/vnd.osa.netdeploy -application/vnd.palm -application/vnd.pg.format -application/vnd.pg.osasli -application/vnd.powerbuilder6 -application/vnd.powerbuilder6-s -application/vnd.powerbuilder7 -application/vnd.powerbuilder7-s -application/vnd.powerbuilder75 -application/vnd.powerbuilder75-s -application/vnd.previewsystems.box -application/vnd.publishare-delta-tree -application/vnd.pvi.ptid1 -application/vnd.pwg-multiplexed -application/vnd.pwg-xhtml-print+xml -application/vnd.quark.quarkxpress -application/vnd.rapid -application/vnd.s3sms -application/vnd.sealed.net -application/vnd.seemail -application/vnd.shana.informed.formdata -application/vnd.shana.informed.formtemplate -application/vnd.shana.informed.interchange -application/vnd.shana.informed.package -application/vnd.smaf -application/vnd.sss-cod -application/vnd.sss-dtf -application/vnd.sss-ntf -application/vnd.street-stream -application/vnd.svd -application/vnd.swiftview-ics -application/vnd.triscape.mxs -application/vnd.trueapp -application/vnd.truedoc -application/vnd.ufdl -application/vnd.uplanet.alert -application/vnd.uplanet.alert-wbxml -application/vnd.uplanet.bearer-choice -application/vnd.uplanet.bearer-choice-wbxml -application/vnd.uplanet.cacheop -application/vnd.uplanet.cacheop-wbxml -application/vnd.uplanet.channel -application/vnd.uplanet.channel-wbxml -application/vnd.uplanet.list -application/vnd.uplanet.list-wbxml -application/vnd.uplanet.listcmd -application/vnd.uplanet.listcmd-wbxml -application/vnd.uplanet.signal -application/vnd.vcx -application/vnd.vectorworks -application/vnd.vidsoft.vidconference -application/vnd.visio -application/vnd.visionary -application/vnd.vividence.scriptfile -application/vnd.vsf -application/vnd.wap.sic -application/vnd.wap.slc -application/vnd.wap.wbxml wbxml -application/vnd.wap.wmlc wmlc -application/vnd.wap.wmlscriptc wmlsc -application/vnd.webturbo -application/vnd.wrq-hp3000-labelled -application/vnd.wt.stf -application/vnd.wv.csp+wbxml -application/vnd.xara -application/vnd.xfdl -application/vnd.yamaha.hv-dic -application/vnd.yamaha.hv-script -application/vnd.yamaha.hv-voice -application/vnd.yellowriver-custom-menu -application/voicexml+xml vxml -application/watcherinfo+xml -application/whoispp-query -application/whoispp-response -application/wita -application/wordperfect5.1 -application/x-bcpio bcpio -application/x-cdlink vcd -application/x-chess-pgn pgn -application/x-compress -application/x-cpio cpio -application/x-csh csh -application/x-director dcr dir dxr -application/x-dvi dvi -application/x-futuresplash spl -application/x-gtar gtar -application/x-gzip -application/x-hdf hdf -application/x-javascript js -application/x-koan skp skd skt skm -application/x-latex latex -application/x-netcdf nc cdf -application/x-sh sh -application/x-shar shar -application/x-shockwave-flash swf -application/x-stuffit sit -application/x-sv4cpio sv4cpio -application/x-sv4crc sv4crc -application/x-tar tar -application/x-tcl tcl -application/x-tex tex -application/x-texinfo texinfo texi -application/x-troff t tr roff -application/x-troff-man man -application/x-troff-me me -application/x-troff-ms ms -application/x-ustar ustar -application/x-wais-source src -application/x400-bp -application/xhtml+xml xhtml xht -application/xslt+xml xslt -application/xml xml xsl -application/xml-dtd dtd -application/xml-external-parsed-entity -application/zip zip -audio/32kadpcm -audio/amr -audio/amr-wb -audio/basic au snd -audio/cn -audio/dat12 -audio/dsr-es201108 -audio/dvi4 -audio/evrc -audio/evrc0 -audio/g722 -audio/g.722.1 -audio/g723 -audio/g726-16 -audio/g726-24 -audio/g726-32 -audio/g726-40 -audio/g728 -audio/g729 -audio/g729D -audio/g729E -audio/gsm -audio/gsm-efr -audio/l8 -audio/l16 -audio/l20 -audio/l24 -audio/lpc -audio/midi mid midi kar -audio/mpa -audio/mpa-robust -audio/mp4a-latm -audio/mpeg mpga mp2 mp3 -audio/parityfec -audio/pcma -audio/pcmu -audio/prs.sid -audio/qcelp -audio/red -audio/smv -audio/smv0 -audio/telephone-event -audio/tone -audio/vdvi -audio/vnd.3gpp.iufp -audio/vnd.cisco.nse -audio/vnd.cns.anp1 -audio/vnd.cns.inf1 -audio/vnd.digital-winds -audio/vnd.everad.plj -audio/vnd.lucent.voice -audio/vnd.nortel.vbk -audio/vnd.nuera.ecelp4800 -audio/vnd.nuera.ecelp7470 -audio/vnd.nuera.ecelp9600 -audio/vnd.octel.sbc -audio/vnd.qcelp -audio/vnd.rhetorex.32kadpcm -audio/vnd.vmx.cvsd -audio/x-aiff aif aiff aifc -audio/x-alaw-basic -audio/x-mpegurl m3u -audio/x-pn-realaudio ram ra -audio/x-pn-realaudio-plugin -application/vnd.rn-realmedia rm -audio/x-wav wav -chemical/x-pdb pdb -chemical/x-xyz xyz -image/bmp bmp -image/cgm cgm -image/g3fax -image/gif gif -image/ief ief -image/jpeg jpeg jpg jpe -image/naplps -image/png png -image/prs.btif -image/prs.pti -image/svg+xml svg -image/t38 -image/tiff tiff tif -image/tiff-fx -image/vnd.cns.inf2 -image/vnd.djvu djvu djv -image/vnd.dwg -image/vnd.dxf -image/vnd.fastbidsheet -image/vnd.fpx -image/vnd.fst -image/vnd.fujixerox.edmics-mmr -image/vnd.fujixerox.edmics-rlc -image/vnd.globalgraphics.pgb -image/vnd.mix -image/vnd.ms-modi -image/vnd.net-fpx -image/vnd.svf -image/vnd.wap.wbmp wbmp -image/vnd.xiff -image/x-cmu-raster ras -image/x-icon ico -image/x-portable-anymap pnm -image/x-portable-bitmap pbm -image/x-portable-graymap pgm -image/x-portable-pixmap ppm -image/x-rgb rgb -image/x-xbitmap xbm -image/x-xpixmap xpm -image/x-xwindowdump xwd -message/delivery-status -message/disposition-notification -message/external-body -message/http -message/news -message/partial -message/rfc822 -message/s-http -message/sip -message/sipfrag -model/iges igs iges -model/mesh msh mesh silo -model/vnd.dwf -model/vnd.flatland.3dml -model/vnd.gdl -model/vnd.gs-gdl -model/vnd.gtw -model/vnd.mts -model/vnd.parasolid.transmit.binary -model/vnd.parasolid.transmit.text -model/vnd.vtu -model/vrml wrl vrml -multipart/alternative -multipart/appledouble -multipart/byteranges -multipart/digest -multipart/encrypted -multipart/form-data -multipart/header-set -multipart/mixed -multipart/parallel -multipart/related -multipart/report -multipart/signed -multipart/voice-message -text/calendar ics ifb -text/css css -text/directory -text/enriched -text/html html htm -text/parityfec -text/plain asc txt -text/prs.lines.tag -text/rfc822-headers -text/richtext rtx -text/rtf rtf -text/sgml sgml sgm -text/t140 -text/tab-separated-values tsv -text/uri-list -text/vnd.abc -text/vnd.curl -text/vnd.dmclientscript -text/vnd.fly -text/vnd.fmi.flexstor -text/vnd.in3d.3dml -text/vnd.in3d.spot -text/vnd.iptc.nitf -text/vnd.iptc.newsml -text/vnd.latex-z -text/vnd.motorola.reflex -text/vnd.ms-mediapackage -text/vnd.net2phone.commcenter.command -text/vnd.sun.j2me.app-descriptor -text/vnd.wap.si -text/vnd.wap.sl -text/vnd.wap.wml wml -text/vnd.wap.wmlscript wmls -text/x-setext etx -text/xml -text/xml-external-parsed-entity -video/bmpeg -video/bt656 -video/celb -video/dv -video/h261 -video/h263 -video/h263-1998 -video/h263-2000 -video/jpeg -video/mp1s -video/mp2p -video/mp2t -video/mp4v-es -video/mpv -video/mpeg mpeg mpg mpe -video/nv -video/parityfec -video/pointer -video/quicktime qt mov -video/smpte292m -video/vnd.fvt -video/vnd.motorola.video -video/vnd.motorola.videop -video/vnd.mpegurl mxu m4u -video/vnd.nokia.interleaved-multimedia -video/vnd.objectvideo -video/vnd.vivo -video/x-msvideo avi -video/x-sgi-movie movie -x-conference/x-cooltalk ice diff --git a/pkg/filelist.ml b/pkg/filelist.ml deleted file mode 100644 index 9023b484f1..0000000000 --- a/pkg/filelist.ml +++ /dev/null @@ -1,212 +0,0 @@ -type descr = { - interface_only : string list; - interface : string list; - internal : string list; -} - -let server = { - interface_only = [ - "eliom_content_sigs"; - "eliom_form_sigs"; - "eliom_parameter_sigs"; - "eliom_registration_sigs"; - "eliom_service_sigs"; - "eliom_shared_sigs"; - ]; - interface = [ - "eliom_bus"; - "eliom_client_value"; - "eliom_syntax"; - "eliom_client"; - "eliom_comet"; - "eliom_common"; - "eliom_config"; - "eliom_content"; - "eliom_cookie"; - "eliom_extension"; - "eliom_lib"; - "eliom_mkreg"; - "eliom_notif"; - "eliom_parameter"; - "eliom_react"; - "eliom_shared"; - "eliom_cscache"; - "eliom_reference"; - "eliom_registration"; - "eliom_request_info"; - "eliom_service"; - "eliom_state"; - "eliom_tools"; - "eliom_types"; - "eliom_uri"; - "eliom_wrap"; - ]; - internal = [ - "eliom_comet_base"; - "eliom_common_base"; - "eliom_runtime"; - "eliom_content_"; - "eliom_content_core"; - "eliom_cookies_base"; - "eliom_error_pages"; - "eliom_form"; - "eliom_lazy"; - "eliom_lib_base"; - "eliom_parameter_base"; - "eliom_process"; - "eliom_service_base"; - "eliom_route"; - "eliom_route_base"; - "eliom_shared_content"; - "eliom_types_base"; - "eliommod"; - "eliommod_cli"; - "eliommod_cookies"; - "eliommod_datasess"; - "eliommod_gc"; - "eliommod_pagegen"; - "eliommod_parameters"; - "eliommod_persess"; - "eliommod_sersess"; - "eliommod_sessadmin"; - "eliommod_sessexpl"; - "eliommod_sessiongroups"; - "eliommod_timeouts"; - ] -} -let client = { - interface_only = [ - "eliom_content_sigs"; - "eliom_form_sigs"; - "eliom_parameter_sigs"; - "eliom_registration_sigs"; - "eliom_service_sigs"; - "eliom_shared_sigs"; - ]; - interface = [ - "eliom_bus"; - "eliom_client_value"; - "eliom_client_core"; - "eliom_client"; - "eliom_comet"; - "eliom_config"; - "eliom_content"; - "eliom_content_core"; - "eliom_lazy"; - "eliom_lib"; - "eliom_parameter"; - "eliom_react"; - "eliom_shared"; - "eliom_cscache"; - "eliom_registration"; - "eliom_service"; - "eliom_tools"; - "eliom_types"; - "eliom_unwrap"; - "eliom_uri"; - ]; - internal = [ - "eliom_comet_base"; - "eliom_common"; - "eliom_common_base"; - "eliom_runtime"; - "eliom_content_"; - "eliom_cookies_base"; - "eliom_form"; - "eliom_lib_base"; - "eliom_parameter_base"; - "eliom_process"; - "eliom_request"; - "eliom_request_info"; - "eliom_service_base"; - "eliom_route"; - "eliom_route_base"; - "eliom_shared_content"; - "eliom_types_base"; - "eliommod_cookies"; - "eliommod_dom"; - "eliommod_parameters"; - ]; -} - -let server_ext = { - interface_only = []; - interface = [ - "atom_feed"; - "eliom_atom"; - "eliom_openid"; - "eliom_s2s"]; - internal = [] -} - -let ocamlbuild = { - interface_only = []; - interface = [ "ocamlbuild_eliom" ]; - internal = [] - -} - -let ppx = { - interface_only = []; - interface = [ "ppx_eliom" ; "ppx_eliom_client" ; "ppx_eliom_type" ; "ppx_eliom_server" ]; - internal = [ "ppx_eliom_utils" ]; -} - - -let (-.-) name ext = name ^ "." ^ ext -let exts el sl = - List.flatten ( - List.map (fun ext -> - List.map (fun name -> - name -.- ext) sl) el) - -let list_to_file filename list = - let oc = open_out filename in - List.iter (fun s -> - output_string oc s; - output_char oc '\n'; - ) list; - close_out oc;; - -let client_mllib = - client.interface @ client.internal - -let client_extra = - exts ["cmi"] (client.interface_only @ client.interface) - -let client_api = - client.interface_only @ client.interface - -let server_mllib = - server.interface @ server.internal - -let server_extra = - exts ["cmi"] (server.interface_only @ server.interface) @ - exts ["cmx"] (server.interface @ server.internal) - -let server_api = - server.interface_only @ server.interface - -let server_ext_mllib = server_ext.interface @ server_ext.internal -let server_ext_extra = - exts ["cmi"] (server_ext.interface_only @ server_ext.interface) @ - exts ["cmx"] (server_ext.interface @ server_ext.internal) - -let ocamlbuild_mllib = ocamlbuild.interface @ ocamlbuild.internal -let ocamlbuild_extra = - exts ["cmi"] (ocamlbuild.interface_only @ ocamlbuild.interface) @ - exts ["cmx"] (ocamlbuild.interface @ ocamlbuild.internal) -let ocamlbuild_api = ocamlbuild.interface_only @ ocamlbuild.interface - -let ppx_mllib = ppx.interface @ ppx.internal -let ppx_extra = - exts ["cmi"] ppx.interface @ - exts ["cmx"] (ppx.interface @ ppx.internal) -let ppx_api = ppx.interface - - -let templates_dir = "pkg/distillery" -let templates = Array.to_list (Sys.readdir templates_dir) -let templates_files = - List.map (fun name -> - name, Array.to_list (Sys.readdir (templates_dir^"/"^name))) templates diff --git a/pkg/man/eliom-distillery.1 b/pkg/man/eliom-distillery.1 deleted file mode 100644 index 8a542e1b3c..0000000000 --- a/pkg/man/eliom-distillery.1 +++ /dev/null @@ -1,51 +0,0 @@ -.TH eliom-distillery 1 2012-12-17 -.SH NAME -eliom-distillery \- Scaffolding for your Eliom-projects. -.SH SYNOPSIS -.B eliom-distillery -.BI \-dir - -.B eliom-distillery -.BI \-name \ name -[ -.BI \-template \