aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Tassi2015-11-05 13:26:22 +0100
committerEnrico Tassi2015-11-06 09:37:23 +0100
commit98cfa7eac278c28686fd10b04b8d9f9714df08c4 (patch)
treeed7dfb1d199c75778b27f6fc57f8ff0b1d0df69a
parent57b0dfbf5a6af0551f48ab440e8ac96fc60c0540 (diff)
Makefile to create a tar ball
-rw-r--r--etc/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/Makefile b/etc/Makefile
new file mode 100644
index 0000000..5515da0
--- /dev/null
+++ b/etc/Makefile
@@ -0,0 +1,6 @@
+VERSION=$(shell git symbolic-ref --short HEAD | cut -d / -f 2)
+
+dist:
+ cd ..; git archive --format tar --prefix mathcomp-$(VERSION)/\
+ -o mathcomp-$(VERSION).tar HEAD
+ cd ..; gzip -f -9 mathcomp-$(VERSION).tar