[Telepathy-commits] [telepathy-spec/master] Use git-archive for make dist, then append ChangeLog
Simon McVittie
simon.mcvittie at collabora.co.uk
Tue Aug 26 07:04:01 PDT 2008
---
Makefile | 22 ++++++++++++++--------
1 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/Makefile b/Makefile
index bfb526f..6cdd67f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,8 @@
all:
+GIT = git
+GZIP = gzip
+TAR = tar
XSLTPROC = xsltproc --xinclude --nonet
CANONXML = xmllint --nsclean --noblanks --c14n --nonet
XML_LINEBREAKS = perl -pe 's/>/>\n/g'
@@ -110,15 +113,18 @@ dist:
set -e ;\
version="`sed -ne s'!<tp:version>\(.*\)</tp:version>!\1!p' spec/all.xml`";\
distname="telepathy-spec-$$version";\
- darcs dist -d dist;\
- tar -zxf- -C tmp < dist.tar.gz;\
- darcs changes > tmp/dist/ChangeLog;\
+ rm -f tmp/ChangeLog "$$distname".tar "$$distname".tar.gz; \
+ $(GIT) archive --format=tar --prefix="$$distname"/ HEAD \
+ > "$$distname".tar;\
rm -rf tmp/"$$distname";\
- mv tmp/dist tmp/"$$distname";\
- tar -zcvf- -C tmp "$$distname" > tmp/"$$distname".tar.gz;\
- mv tmp/"$$distname".tar.gz .;\
- rm -rf tmp/"$$distname";\
- rm -f dist.tar.gz
+ mkdir tmp/"$$distname";\
+ $(GIT) log --stat > tmp/"$$distname"/ChangeLog || \
+ $(GIT) log > tmp/"$$distname"/ChangeLog;\
+ $(TAR) -rf "$$distname".tar -C tmp --owner 0 --group 0 --mode 0664 \
+ "$$distname"/ChangeLog;\
+ $(GZIP) -9 "$$distname".tar;\
+ $(TAR) -ztvf "$$distname".tar.gz;\
+ rm -rf tmp/"$$distname"
BRANCH = misc
UPLOAD_BRANCH_TO = people.freedesktop.org:public_html/telepathy-spec
--
1.5.6.3
More information about the Telepathy-commits
mailing list