Skip to content

Commit

Permalink
Use dune-release to submit the package
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris00 committed Mar 19, 2019
1 parent dcec048 commit be7f043
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,17 @@ tests:
dune runtest --force

submit:
topkg distrib --skip-build --skip-tests
dune-release distrib --skip-build --skip-tests
# Add the Triangle files so the tarball can easily be compiled.
tar -C _build -xf $(TARBALL)
mkdir _build/mesh-$(PKGVERSION)/triangle/triangle/
cp -a triangle/triangle/triangle.* \
_build/mesh-$(PKGVERSION)/triangle/triangle/
tar -C _build -jcf $(TARBALL) mesh-$(PKGVERSION)
$(RM) -rf _build/mesh-$(PKGVERSION)/
topkg publish distrib
# until we have https://github.com/ocaml/opam-publish/issues/38
[ -d packages ] || (echo "ERROR: Make a symbolic link packages → \
opam-repo/packages"; exit 1)
for p in $(PACKAGES); do \
mkdir -p packages/$$p; \
cp -r _build/$$p.$(PKGVERSION) packages/$$p/; \
done
cd packages && git add $(PACKAGES)
# CONDUIT_TLS=native topkg opam submit $(addprefix -n, $(PACKAGES))


dune-release publish distrib
dune-release opam pkg
dune-release opam submit

update-triangle:
@WGET=`which wget`; \
Expand Down

0 comments on commit be7f043

Please sign in to comment.