<pre style='margin:0'>
Rainer Müller (raimue) pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/7ee948edf8eea881961da2f54cede39b3529db80">https://github.com/macports/macports-base/commit/7ee948edf8eea881961da2f54cede39b3529db80</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 7ee948e Makefile: create release tarballs with git archive
</span>7ee948e is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 7ee948edf8eea881961da2f54cede39b3529db80
</span>Author: Rainer Müller <raimue@macports.org>
AuthorDate: Sat Nov 12 15:38:09 2016 +0100
<span style='display:block; white-space:pre;color:#404040;'> Makefile: create release tarballs with git archive
</span>---
.gitignore | 2 ++
Makefile.in | 34 ++++++++++------------------------
2 files changed, 12 insertions(+), 24 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/.gitignore b/.gitignore
</span><span style='display:block; white-space:pre;color:#808080;'>index 219dcde..91f5fe1 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/.gitignore
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/.gitignore
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -38,3 +38,5 @@ vendor/*/
</span>
Makefile
pkgIndex.tcl
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/dist/
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/Makefile.in b/Makefile.in
</span><span style='display:block; white-space:pre;color:#808080;'>index f724aca..28f1c81 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/Makefile.in
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/Makefile.in
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -7,11 +7,8 @@ PATH = @PATH_CLEANED@
</span> SUBDIR = vendor doc src tests
DISTDIR = dist
DISTVER =
<span style='display:block; white-space:pre;background:#ffe0e0;'>-DISTTAG = release_${subst .,_,${DISTVER}}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+DISTTAG = v${DISTVER}
</span> DISTNAME = MacPorts-${DISTVER}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-DISTARCTAG = ${DISTTAG}-archive
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-DISTARCNAME = ${DISTNAME}-archive
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-SVNURL = https://svn.macports.org/repository/macports
</span>
include Mk/macports.autoconf.mk
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -125,31 +122,20 @@ distclean::
</span> rm -f setupenv.bash
rm -f portmgr/dmg/postflight
<span style='display:block; white-space:pre;background:#ffe0e0;'>-_gettag:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- cd ${DISTDIR}; svn co ${SVNURL}/tags/${SVNTAG} ${PKGNAME}-svn
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-_pkgdist:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- [ ! -d ${DISTDIR}/${PKGNAME} ] || rm -rf ${DISTDIR}/${PKGNAME}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- cd ${DISTDIR}; svn export ${PKGNAME}-svn ${PKGNAME}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- cd ${DISTDIR}; COPY_EXTENDED_ATTRIBUTES_DISABLE=true tar -c ${PKGNAME} | gzip > ${PKGNAME}.tar.gz
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- cd ${DISTDIR}; COPY_EXTENDED_ATTRIBUTES_DISABLE=true tar -c ${PKGNAME} | bzip2 > ${PKGNAME}.tar.bz2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- cd ${DISTDIR}; for tarball in ${PKGNAME}.tar.*; do { \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+_disttarballs:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ mkdir -p ${DISTDIR}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ git archive --format=tar ${DISTTAG} | gzip -cn > ${DISTDIR}/${DISTNAME}.tar.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ git archive --format=tar ${DISTTAG} | bzip2 -c > ${DISTDIR}/${DISTNAME}.tar.bz2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rm -f ${DISTDIR}/${DISTNAME}.chk.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cd $(DISTDIR) && for tarball in ${DISTNAME}.tar.*; do { \
</span> for type in -md5 -sha1 -ripemd160 -sha256; do { \
openssl dgst $$type $$tarball; \
}; done >> ${DISTNAME}.chk.txt; \
}; done
<span style='display:block; white-space:pre;background:#ffe0e0;'>-_dopkg: _gettag _pkgdist
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# This target fetches a tagged distribution from svn, and generates tarballs and checksums for it
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-distfromsvn:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- @[ -n "${DISTVER}" ] || { echo Must specify DISTVER, like: make DISTVER=1.4.0 distfromsvn; exit 1; }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- [ -d ${DISTDIR} ] || mkdir ${DISTDIR}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- rm -f ${DISTDIR}/${DISTNAME}.chk.txt
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${MAKE} SVNTAG=${DISTTAG}/base/ PKGNAME=${DISTNAME} _dopkg
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-ifeq ($(ARC),yes)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${MAKE} SVNTAG=${DISTARCTAG} PKGNAME=${DISTARCNAME} _dopkg
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+dist:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @[ -n "${DISTVER}" ] || { echo "Usage: make dist DISTVER=2.3.4"; exit 1; }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${MAKE} DISTVER=${DISTVER} _disttarballs
</span>
docs:
@[ -e "${prefix}/bin/doxygen" -a -e "${prefix}/bin/dot" ] \
</pre><pre style='margin:0'>
</pre>