##// END OF EJS Templates
fix MANIFEST generation
Benoit Boissinot -
r3872:9d7ac861 default
parent child Browse files
Show More
@@ -53,12 +53,18 b' install-home-bin: build'
53 install-home-doc: doc
53 install-home-doc: doc
54 cd doc && $(MAKE) $(MFLAGS) PREFIX="$(HOME)" install
54 cd doc && $(MAKE) $(MFLAGS) PREFIX="$(HOME)" install
55
55
56 MANIFEST-doc:
57 $(MAKE) -C doc MANIFEST
58
59 MANIFEST: MANIFEST-doc
60 hg manifest > MANIFEST
61 echo mercurial/__version__.py >> MANIFEST
62 cat doc/MANIFEST >> MANIFEST
63
56 dist: tests dist-notests
64 dist: tests dist-notests
57
65
58 dist-notests: doc
66 dist-notests: doc MANIFEST
59 hg manifest > MANIFEST
60 TAR_OPTIONS="--owner=root --group=root --mode=u+w,go-w,a+rX-s" $(PYTHON) setup.py -q sdist
67 TAR_OPTIONS="--owner=root --group=root --mode=u+w,go-w,a+rX-s" $(PYTHON) setup.py -q sdist
61 rm MANIFEST
62
68
63 tests:
69 tests:
64 cd tests && $(PYTHON) run-tests.py
70 cd tests && $(PYTHON) run-tests.py
@@ -26,6 +26,13 b' hg.1.gendoc.txt: ../mercurial/commands.p'
26 %.html: %.txt
26 %.html: %.txt
27 asciidoc -b html4 $*.txt || asciidoc -b html $*.txt
27 asciidoc -b html4 $*.txt || asciidoc -b html $*.txt
28
28
29 MANIFEST: man html
30 # versionned files are already in the main MANIFEST
31 $(RM) $@
32 for i in $(MAN) $(HTML); do \
33 echo "doc/$$i" >> $@ ; \
34 done
35
29 install: man
36 install: man
30 for i in $(MAN) ; do \
37 for i in $(MAN) ; do \
31 subdir=`echo $$i | sed -n 's/..*\.\([0-9]\)$$/man\1/p'` ; \
38 subdir=`echo $$i | sed -n 's/..*\.\([0-9]\)$$/man\1/p'` ; \
@@ -34,4 +41,4 b' install: man'
34 done
41 done
35
42
36 clean:
43 clean:
37 $(RM) $(MAN) $(MAN:%=%.xml) $(MAN:%=%.html) *.[0-9].gendoc.txt
44 $(RM) $(MAN) $(MAN:%=%.xml) $(MAN:%=%.html) *.[0-9].gendoc.txt MANIFEST
General Comments 0
You need to be logged in to leave comments. Login now