Skip to content

Commit

Permalink
Initial commit with basic functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicjprice committed Nov 18, 2014
0 parents commit 90ea95d
Show file tree
Hide file tree
Showing 28 changed files with 7,994 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# ocaml binaries/build files
*.annot
*.cmo
*.cma
*.cmi
*.a
*.o
*.cmx
*.cmxs
*.cmxa
_build
setup.data
setup.log
*.native
*.docdir

# Eclipse/OcalIDE project settings
.paths
.project
.projectSettings
.settings

# Application configuration files
*.conf

# Opam release files
opam-releases

# Vi temporary files
*.swp
Empty file added CHANGELOG.md
Empty file.
13 changes: 13 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright (c) 2014 Dominic Price <[email protected]>

Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
41 changes: 41 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Lightweight Maildir wrapper
---------------------------

Provides a very lightweight wrapper around filesystem or Irmin
implementations of a Maildir.
64 changes: 64 additions & 0 deletions _oasis
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
OASISFormat: 0.4
Name: sociaml-maildir
Version: 0.1.0
Synopsis: Lightweight Maildir wrapper
Description:
Provides a very lightweight wrapper around filesystem or Irmin
implementations of a Maildir.
Authors: Dominic Price
Copyrights: (C) 2014 Horizon Digital Economy Research
LicenseFile: LICENSE
License: ISC
Homepage: https://github.com/dominicjprice/sociaml-maildir
Plugins: META (0.4), DevFiles (0.4)
BuildTools: ocamlbuild, ocamldoc, make, awk

Library sociaml_maildir
Path: src
Findlibname: sociaml_maildir
Modules: Sociaml_maildir
Pack: false
BuildDepends:
lwt

Library filesystem
Path: src
Findlibname: filesystem
FindlibParent: sociaml_maildir
Modules: Filesystem
Pack: false
BuildDepends:
lwt,
maildir,
sociaml_maildir

Library irminstore
Path: src
Findlibname: irminstore
FindlibParent: sociaml_maildir
Modules: Irminstore
Pack: false
BuildDepends:
lwt,
irmin,
sociaml_maildir

Document sociaml_maildir
Type: ocamlbuild (0.1.0)
Title: sociaml-maildir Reference
Authors: Dominic Price
Format: HTML
Index: index.html
InstallDir: $htmldir/sociaml-maildir
XOCamlbuildPath:
src
XOCamlbuildLibraries:
sociaml_maildir,
sociaml_maildir.filesystem,
sociaml_maildir.irminstore

SourceRepository head
Type: git
Location: https://github.com/dominicjprice/sociaml-maildir.git
Browser: https://github.com/dominicjprice/sociaml-maildir
Branch: master
27 changes: 27 additions & 0 deletions _tags
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# OASIS_START
# DO NOT EDIT (digest: 4c91e0c4f46f439f3894d41b56b58525)
# 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
true: annot, bin_annot
<**/.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
# Library sociaml_maildir
"src/sociaml_maildir.cmxs": use_sociaml_maildir
# Library filesystem
"src/filesystem.cmxs": use_filesystem
<src/*.ml{,i,y}>: pkg_maildir
# Library irminstore
"src/irminstore.cmxs": use_irminstore
<src/*.ml{,i,y}>: pkg_irmin
<src/*.ml{,i,y}>: pkg_lwt
<src/*.ml{,i,y}>: use_sociaml_maildir
# 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: 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
Loading

0 comments on commit 90ea95d

Please sign in to comment.