commit:     24010dcb483cf7284cd8a5db111ae63f0d4e1038
Author:     William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Fri Sep 23 20:25:22 2016 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Fri Sep 23 20:28:56 2016 +0000
URL:        https://gitweb.gentoo.org/proj/openrc.git/commit/?id=24010dcb

dist: convert to tar.gz

This allows the "make dist" target to be used as well as the github
archive generation.

 .gitignore |  2 +-
 mk/dist.mk | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/.gitignore b/.gitignore
index d9e27e0..23f644a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,4 @@
-*.bz2
+*.gz
 
 *.diff
 *.patch

diff --git a/mk/dist.mk b/mk/dist.mk
index d127ad7..7d6e139 100644
--- a/mk/dist.mk
+++ b/mk/dist.mk
@@ -11,9 +11,9 @@
 
 GITREF?=       ${VERSION}
 DISTPREFIX?=   ${NAME}-${VERSION}
-DISTFILE?=     ${DISTPREFIX}.tar.bz2
+DISTFILE?=     ${DISTPREFIX}.tar.gz
 
-CLEANFILES+=   ${NAME}-*.tar.bz2
+CLEANFILES+=   ${NAME}-*.tar.gz
 
 CHANGELOG_LIMIT?= --after="1 year ago"
 
@@ -21,13 +21,13 @@ _SNAP_SH=   date -u +%Y%m%d%H%M
 _SNAP:=                $(shell ${_SNAP_SH})
 SNAP=          ${_SNAP}
 SNAPDIR=       ${DISTPREFIX}-${SNAP}
-SNAPFILE=      ${SNAPDIR}.tar.bz2
+SNAPFILE=      ${SNAPDIR}.tar.gz
 
 changelog:
        git log ${CHANGELOG_LIMIT} --format=full > ChangeLog
 
 dist:
-       git archive --prefix=${DISTPREFIX}/ ${GITREF} | bzip2 > ${DISTFILE}
+       git archive --prefix=${DISTPREFIX}/ ${GITREF} --output=${DISTFILE}
 
 distcheck: dist
        rm -rf ${DISTPREFIX}
@@ -42,7 +42,7 @@ snapshot:
        cp -RPp * /tmp/${SNAPDIR}
        (cd /tmp/${SNAPDIR}; make clean)
        rm -rf /tmp/${SNAPDIR}/.git 2>/dev/null || true
-       tar -cvjpf ${SNAPFILE} -C /tmp ${SNAPDIR}
+       tar -cvzpf ${SNAPFILE} -C /tmp ${SNAPDIR}
        rm -rf /tmp/${SNAPDIR}
        ls -l ${SNAPFILE}
 

Reply via email to