mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 23:07:18 +03:00
fix MANIFEST generation
This commit is contained in:
parent
149bcf7d29
commit
253a9af902
12
Makefile
12
Makefile
@ -53,12 +53,18 @@ install-home-bin: build
|
||||
install-home-doc: doc
|
||||
cd doc && $(MAKE) $(MFLAGS) PREFIX="$(HOME)" install
|
||||
|
||||
MANIFEST-doc:
|
||||
$(MAKE) -C doc MANIFEST
|
||||
|
||||
MANIFEST: MANIFEST-doc
|
||||
hg manifest > MANIFEST
|
||||
echo mercurial/__version__.py >> MANIFEST
|
||||
cat doc/MANIFEST >> MANIFEST
|
||||
|
||||
dist: tests dist-notests
|
||||
|
||||
dist-notests: doc
|
||||
hg manifest > MANIFEST
|
||||
dist-notests: doc MANIFEST
|
||||
TAR_OPTIONS="--owner=root --group=root --mode=u+w,go-w,a+rX-s" $(PYTHON) setup.py -q sdist
|
||||
rm MANIFEST
|
||||
|
||||
tests:
|
||||
cd tests && $(PYTHON) run-tests.py
|
||||
|
@ -26,6 +26,13 @@ hg.1.gendoc.txt: ../mercurial/commands.py
|
||||
%.html: %.txt
|
||||
asciidoc -b html4 $*.txt || asciidoc -b html $*.txt
|
||||
|
||||
MANIFEST: man html
|
||||
# versionned files are already in the main MANIFEST
|
||||
$(RM) $@
|
||||
for i in $(MAN) $(HTML); do \
|
||||
echo "doc/$$i" >> $@ ; \
|
||||
done
|
||||
|
||||
install: man
|
||||
for i in $(MAN) ; do \
|
||||
subdir=`echo $$i | sed -n 's/..*\.\([0-9]\)$$/man\1/p'` ; \
|
||||
@ -34,4 +41,4 @@ install: man
|
||||
done
|
||||
|
||||
clean:
|
||||
$(RM) $(MAN) $(MAN:%=%.xml) $(MAN:%=%.html) *.[0-9].gendoc.txt
|
||||
$(RM) $(MAN) $(MAN:%=%.xml) $(MAN:%=%.html) *.[0-9].gendoc.txt MANIFEST
|
||||
|
Loading…
Reference in New Issue
Block a user