Commit 41823bcc authored by Sylvain Le Gall's avatar Sylvain Le Gall

Imported Upstream version 0.0.2

parent 221b28e1
......@@ -70,3 +70,4 @@
^setup.log$
^setup.data$
^src/OCamlifyConfig.ml$
^dist$
2013-06-25 Sylvain Le Gall <sylvain AT le-gall.net>
* Version 0.0.2
* Use oasis 0.3.0 to regenerate the setup.ml.
* Setup continuous integration.
(* OASIS_START *)
(* DO NOT EDIT (digest: 42f1bc6fe11a609f700359c6b16773aa) *)
(* DO NOT EDIT (digest: ff14f9ae83ff16013a48d7bd3b76fa73) *)
This is the INSTALL file for the ocamlify distribution.
This package uses OASIS to generate its build system. See section OASIS for
......@@ -15,7 +15,7 @@ In order to compile this package, you will need:
Installing
==========
1. Uncompress source directory and got to the root of the package
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'
......@@ -29,8 +29,8 @@ Uninstalling
OASIS
=====
OASIS is a software that helps to write setup.ml using a simple '_oasis'
configuration file. The generated setup only depends on standard OCaml
installation, no additional library is required.
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 *)
......@@ -20,7 +20,7 @@
################################################################################
# OASIS_START
# DO NOT EDIT (digest: c670bbc06ab2e6f432b790475d6ad412)
# DO NOT EDIT (digest: bc1e05bfc8b39b664f29dae8dbd3ebbb)
SETUP = ocaml setup.ml
......@@ -33,12 +33,18 @@ doc: setup.data build
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)
......@@ -48,7 +54,7 @@ distclean:
setup.data:
$(SETUP) -configure $(CONFIGUREFLAGS)
.PHONY: build doc test install uninstall clean distclean configure
.PHONY: build doc test all install uninstall reinstall clean distclean configure
# OASIS_STOP
......@@ -57,20 +63,11 @@ headache:
-false -o -type f \
| xargs headache -h _header -c _headache.config
dist: setup.data
if ! [ "$$(darcs diff | wc -l)" = 0 ]; then \
echo E: Uncommited changes >&2 ; exit 1; \
fi
$(MAKE) test
$(MAKE) dist-step2
-include setup.data
dist-step2:
darcs dist --dist-name $(pkg_name)-$(pkg_version)
if ! (darcs query tag | grep "$(pkg_version)" > /dev/null); then \
darcs tag "$(pkg_version)"; \
else \
echo W: Version $(pkg_version) already tagged >&2; \
fi
gpg -s -a -b "$(pkg_name)-$(pkg_version).tar.gz"
.PHONY: headache
deploy:
admin-gallu-deploy --verbose \
--forge_upload --forge_group ocamlify --forge_user gildor-admin
.PHONY: deploy
OASISFormat: 0.1
OASISFormat: 0.3
Name: ocamlify
Version: 0.0.1
Version: 0.0.2
Synopsis: include files in OCaml code
Authors: Sylvain Le Gall
LicenseFile: COPYING.txt
LicenseFile: COPYING.txt
License: LGPL-2.1 with OCaml linking exception
FilesAB: src/OCamlifyConfig.ml.ab
Plugins: StdFiles (0.1.0), DevFiles (0.1.0)
BuildTools: ocamlbuild
Executable ocamlify
Path: src
......
################################################################################
# ocamlify: include files in OCaml code #
# #
# Copyright (C) 2009-2010, 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 #
################################################################################
# OASIS_START
# DO NOT EDIT (digest: 3445dce1ab28eb069f691f3befe31504)
# DO NOT EDIT (digest: d0ff94eb3e82a4875dd557595bea8eb3)
# Ignore VCS directories, you can use the same kind of rule outside
# OASIS_START/STOP if you want to exclude directories that contains
# useless stuff for the build process
<**/.svn>: -traverse
<**/.svn>: not_hygienic
".bzr": -traverse
".bzr": not_hygienic
".hg": -traverse
".hg": not_hygienic
".git": -traverse
".git": not_hygienic
"_darcs": -traverse
"_darcs": not_hygienic
# Executable ocamlify
# OASIS_STOP
oasis = require("oasis")
darcs = require("darcs")
ci = require("ci")
dist = require("dist")
ci.init()
oasis.init()
darcs.init()
ci.prependenv("PATH", "/usr/opt/godi/bin")
ci.prependenv("PATH", "/usr/opt/godi/sbin")
ci.putenv("OUNIT_OUTPUT_HTML_DIR", dist.make_filename("ounit-log.html"))
ci.putenv("OUNIT_OUTPUT_JUNIT_FILE", dist.make_filename("junit.xml"))
ci.putenv("OUNIT_OUTPUT_FILE", dist.make_filename("ounit-log.txt"))
oasis.std_process("--enable-tests")
darcs.create_tag(oasis.package_version())
#!/bin/sh
# OASIS_START
# DO NOT EDIT (digest: ed33e59fe00e48bc31edf413bbc8b8d6)
# DO NOT EDIT (digest: 425187ed8bfdbdd207fd76392dd243a7)
set -e
ocaml setup.ml -configure $*
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
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment