From 8b4cda1b528ca819d35c4e8998a4e8a22a32a249 Mon Sep 17 00:00:00 2001 From: Sean Cribbs Date: Thu, 15 Dec 2011 11:59:45 -0500 Subject: [PATCH] Build package tarball. Closes #12. --- .gitignore | 1 + .manifest | 5 +++++ Makefile | 8 +++++++- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .manifest diff --git a/.gitignore b/.gitignore index f43d928..489d8fb 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ edoc/ index.html riaknostic *.png +pkg/ diff --git a/.manifest b/.manifest new file mode 100644 index 0000000..0fb9b12 --- /dev/null +++ b/.manifest @@ -0,0 +1,5 @@ +src +riaknostic +doc +LICENSE +README.md diff --git a/Makefile b/Makefile index 5af873a..f74976d 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,13 @@ pages: docs ## ## Release targets ## -# package: all docs +VSN = `grep vsn src/riaknostic.app.src | cut -f 2 -d "\""` + +package: all docs + @mkdir -p pkg/riaknostic + @rm -rf pkg/riaknostic/* + @cat .manifest | xargs -n 1 -J % cp -R % pkg/riaknostic/. + @tar -czf pkg/riaknostic-$(VSN).tar.gz -C pkg riaknostic ## ## Dialyzer targets