changeset 82:5484cfdc2d59

setup: build MANIFEST.in from hg manifest
author Matt Mackall <mpm@selenic.com>
date Thu, 10 Nov 2011 17:08:24 -0600
parents b3c2f0e6bda2
children c41442cb355d
files Makefile
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Thu Nov 10 16:42:30 2011 -0600
+++ b/Makefile	Thu Nov 10 17:08:24 2011 -0600
@@ -7,9 +7,11 @@
 
 .PHONY: tests
 
-dist:
+MANIFEST.in:
+	hg manifest | sed -e 's/^/include /' > MANIFEST.in
+
+dist: MANIFEST.in
 	TAR_OPTIONS="--owner=root --group=root --mode=u+w,go-w,a+rX-s" $(PYTHON) setup.py -q sdist
 
-
 tests:
 	$(PYTHON) test.py --with-doctest