Permalink
Browse files

Added dist target to Makefile to build tar ball from git tree

  • Loading branch information...
1 parent 905c7d5 commit 03fcc69420f6e0a2daa6b13d0043b6d6c9c74bcc @dfandrich dfandrich committed Jan 7, 2013
Showing with 13 additions and 0 deletions.
  1. +2 −0 .gitattributes
  2. +11 −0 Makefile
View
@@ -0,0 +1,2 @@
+.gitignore export-ignore
+.gitattributes export-ignore
View
@@ -70,3 +70,14 @@ gpscorrelate.1: doc/gpscorrelate-manpage.xml
gpscorrelate.html: doc/gpscorrelate-manpage.xml
xsltproc $(XSLTFLAGS) http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $< > $@
+
+dist:
+ mkdir gpscorrelate-$(PACKAGE_VERSION)
+ git archive --prefix=gpscorrelate-$(PACKAGE_VERSION)/ HEAD | tar xf -
+ -rm gpscorrelate-$(PACKAGE_VERSION)/po/stamp-po
+ cd gpscorrelate-$(PACKAGE_VERSION)/po && $(MAKE) gpscorrelate.pot-update clean
+ -rm gpscorrelate-$(PACKAGE_VERSION)/po/stamp-po
+ tar cf gpscorrelate-$(PACKAGE_VERSION).tar gpscorrelate-$(PACKAGE_VERSION)
+ -rm gpscorrelate-$(PACKAGE_VERSION).tar.gz
+ gzip -9 gpscorrelate-$(PACKAGE_VERSION).tar
+ rm -r gpscorrelate-$(PACKAGE_VERSION)

0 comments on commit 03fcc69

Please sign in to comment.