Skip to content

Commit

Permalink
Added "make release" to make binary archives
Browse files Browse the repository at this point in the history
  • Loading branch information
talex5 committed Apr 27, 2015
1 parent de0b4e8 commit 6e3c2bf
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ export CAML_LD_LIBRARY_PATH
# make JFLAGS="--pretty --noinline"
JFLAGS =

VERSION = dev
RELEASE_DIR = cuekeeper-bin-${VERSION}

.PHONY: build test
all: test _build/js/client.js

Expand All @@ -23,5 +26,15 @@ slow_test:
ck_init.ml: init/*/*
ocaml-crunch init -o ck_init.ml -m plain

release:
rm -rf "${RELEASE_DIR}"
mkdir "${RELEASE_DIR}"
git archive HEAD --format=tar resources LICENSE | tar xf - -C "${RELEASE_DIR}"
cp _build/js/client.js "${RELEASE_DIR}/resources/js/cuekeeper.js"
sed 's!_build/js/client.js!resources/js/cuekeeper.js!' test.html > "${RELEASE_DIR}/index.html"
sed '/^Installation/,/^Conditions/{/^Conditions/!d}' README.md > "${RELEASE_DIR}/README.md"
tar cjf "${RELEASE_DIR}.tar.bz2" ${RELEASE_DIR}
rm -rf "${RELEASE_DIR}"

clean:
ocamlbuild -clean

0 comments on commit 6e3c2bf

Please sign in to comment.