Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to the Dune build system and ppxlib #40

Merged
merged 15 commits into from
Mar 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
_build
*.native
*.byte
*.docdir
setup.data
setup.log
src/config.h
src/extUnixConfig.ml
_opam
.merlin
*.install
web/index.html
*~
/userns_test/
4 changes: 0 additions & 4 deletions .merlin

This file was deleted.

3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ env:
- OCAML_VERSION=4.07
- OCAML_VERSION=4.08
- OCAML_VERSION=4.09
- OCAML_VERSION=4.10
- OCAML_VERSION=4.11
- OCAML_VERSION=4.12
os:
- linux
- osx
30 changes: 15 additions & 15 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
0.2.0 - 8 Nov 2019
## v0.2.0 - 8 Nov 2019
* camlp4 dependency replaced with ppx
* use available endian functions on Mac OS

0.1.7 - 27 Mar 2019
## v0.1.7 - 27 Mar 2019
* detect endian functions on more platforms
* fix openlog
* improve gettid on Mac OS

0.1.6 - 11 Mar 2018
## v0.1.6 - 11 Mar 2018
* OCaml 4.05 compatibility (O_KEEPEXEC)
* sockopt: add BPF options
* make tests less fragile
* New bindings:
* syslog

0.1.5 - 28 Jun 2017
## v0.1.5 - 28 Jun 2017
* build with -safe-string

0.1.4 - 11 Nov 2016
## v0.1.4 - 11 Nov 2016
+ SO_REUSEPORT
* fix sendmsg bug
* fix build on mingw

0.1.3 - 24 Nov 2015
## v0.1.3 - 24 Nov 2015
* New bindings :
* fchmodat
* fchownat
+ ExtUnix.Config
* fix sysconf detection wrt non-standard options

0.1.2 - 24 Jul 2015
## v0.1.2 - 24 Jul 2015
* New bindings :
* sysinfo uptime
* mtrace muntrace
Expand All @@ -43,14 +43,14 @@
module [Specific], hence one should use [have_sockopt] function to check
for options presence at runtime.

0.1.1 - 18 May 2014
## v0.1.1 - 18 May 2014
* New bindings :
* gettid
* poll
* OCaml 4.02 compatibility (install all .cmi)
* sendmsg/sendfd : fix sending binary data

0.1.0 - 8 Oct 2013
## v0.1.0 - 8 Oct 2013
* statvfs: add f_flags - decoded f_flag field
* New bindings :
* sysconf
Expand All @@ -61,15 +61,15 @@
* OCaml 4.01 compatibility (Unix.open_flag)
* relax restrictions on bigarray types

0.0.6 - 1 Apr 2013
## v0.0.6 - 1 Apr 2013
* New string and bigarray functions :
* get_uint63 set_uint63 get_int63 set_int63
* fstatat: flags parameter was omitted
* New bindings :
* readlinkat
* getifaddrs

0.0.5 - 16 Jun 2012
## v0.0.5 - 16 Jun 2012
* src/discover.ml :
* New option -q to suppress stderr
* --disable-* options to exclude selected features from build
Expand All @@ -80,7 +80,7 @@
* OCaml 4 compatibility (Unix.open_flag)
* List email contacts (bug #1108)

0.0.4 - 19 May 2012
## v0.0.4 - 19 May 2012
* ExtUnix now depends on Bigarray and provides variants of
some bindings operating on bigarray buffers (BA submodule)
* New bindings :
Expand Down Expand Up @@ -110,7 +110,7 @@
* get_int32 set_int32
* get_int64 set_int64

0.0.3 - 12 Jul 2011
## v0.0.3 - 12 Jul 2011
* Keep unlinkat interface compatible with Netsys
* statvfs : return all fields, use POSIX names
* realpath : fix segfault on non-glibc systems
Expand All @@ -120,7 +120,7 @@
* linkat symlinkat
* mkdtemp

0.0.2 - 26 Dec 2010
## v0.0.2 - 26 Dec 2010
* New bindings :
* getrlimit setrlimit
* getpriority setpriority
Expand All @@ -140,7 +140,7 @@
* ExtUnix.All.have function to test for features at runtime
* Skip tests of functions not available on the current platform

0.0.1 - 7 Nov 2010
## v0.0.1 - 7 Nov 2010
* First release, implemented bindings :
* fsync fdatasync
* eventfd signalfd
Expand Down
58 changes: 10 additions & 48 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,50 +1,12 @@
# 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)

build:
dune build @install
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

VERSION=$(shell oasis query version)
NAME=ocaml-extunix-$(VERSION)

.PHONY: release
dune clean
doc:
dune build @doc
release:
MisterDA marked this conversation as resolved.
Show resolved Hide resolved
git tag -a -m $(VERSION) v$(VERSION)
git archive --prefix=$(NAME)/ v$(VERSION) | gzip > $(NAME).tar.gz
gpg -a -b $(NAME).tar.gz
dune-release tag
dune-release
test:
dune runtest
.PHONY: build clean doc release test
Loading