aboutsummaryrefslogtreecommitdiffstats
path: root/mk/dist.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/dist.mk')
-rw-r--r--mk/dist.mk31
1 files changed, 0 insertions, 31 deletions
diff --git a/mk/dist.mk b/mk/dist.mk
deleted file mode 100644
index 3d9385b..0000000
--- a/mk/dist.mk
+++ /dev/null
@@ -1,31 +0,0 @@
-# rules to make a distribution tarball from a git repo
-# Copyright 2008 Roy Marples <roy@marples.name>
-
-GITREF?= HEAD
-DISTPREFIX?= ${PROG}-${VERSION}
-DISTFILE?= ${DISTPREFIX}.tar.bz2
-
-CLEANFILES+= *.tar.bz2
-
-_VERSION_SH= sed -n 's/\#define VERSION[[:space:]]*"\(.*\)".*/\1/p' config.h
-_VERSION!= ${_VERSION_SH}
-VERSION= ${_VERSION}$(shell ${_VERSION_SH})
-
-_SNAP_SH= date -u +%Y%m%d%H%M
-_SNAP!= ${_SNAP_SH}
-SNAP= ${_SNAP}$(shell ${_SNAP_SH})
-SNAPDIR= ${DISTPREFIX}-${SNAP}
-SNAPFILE= ${SNAPDIR}.tar.bz2
-
-dist:
- git archive --prefix=${DISTPREFIX}/ ${GITREF} | bzip2 > ${DISTFILE}
-
-snapshot:
- mkdir /tmp/${SNAPDIR}
- cp -RPp * /tmp/${SNAPDIR}
- (cd /tmp/${SNAPDIR}; make clean)
- tar -cvjpf ${SNAPFILE} -C /tmp ${SNAPDIR}
- rm -rf /tmp/${SNAPDIR}
- ls -l ${SNAPFILE}
-
-snap: snapshot