aboutsummaryrefslogtreecommitdiff
path: root/mk/dist.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/dist.mk')
-rw-r--r--mk/dist.mk5
1 files changed, 2 insertions, 3 deletions
diff --git a/mk/dist.mk b/mk/dist.mk
index 179da847..abb2c696 100644
--- a/mk/dist.mk
+++ b/mk/dist.mk
@@ -2,6 +2,7 @@
# Copyright 2008 Roy Marples <roy@marples.name>
# All rights reserved. Released under the 2-clause BSD license.
+GITREF?= HEAD
DISTPREFIX?= ${NAME}-${VERSION}
DISTFILE?= ${DISTPREFIX}.tar.bz2
@@ -14,9 +15,7 @@ SNAPDIR= ${DISTPREFIX}-${SNAP}
SNAPFILE= ${SNAPDIR}.tar.bz2
dist:
- svn export . ${DISTPREFIX}
- tar cjpf ${DISTFILE} ${DISTPREFIX}
- rm -rf ${DISTPREFIX}
+ git archive --prefix=${DISTPREFIX}/ ${GITREF} | bzip2 > ${DISTFILE}
snapshot:
rm -rf /tmp/${SNAPDIR}