4
python -Werror ./bzr selftest -v $(tests)
5
@echo "Running all tests with no locale."
6
LC_CTYPE= LANG=C LC_ALL= ./bzr selftest -v $(tests)
7
python -O -Werror ./bzr selftest -v $(tests)
10
./bzr --no-plugins selftest -v msgeditor
12
# Run Python style checker (apt-get install pyflakes)
17
# There are many of these warnings at the moment and they're not a
18
# high priority to fix
19
pyflakes bzrlib | grep -v ' imported but unused'
23
-find . -name "*.pyc" -o -name "*.pyo" | xargs rm -f
12
find . -name "*.pyc" | xargs rm
24
13
rm -rf test????.tmp
30
19
tag_files=./bzr ./bzrlib/*py ./bzrlib/selftest/*.py
32
21
ctags-exuberant -e $(tag_files)
35
# Produce HTML docs to upload on Canonical server
37
PRETTYDIR := pretty_docs
40
python tools/win32/ostools.py copytodir $(htm_files) doc/default.css $(HTMLDIR)
43
# translate txt docs to html
45
txt_files := $(wildcard $(addsuffix /*.txt, $(doc_dir))) doc/bzr_man.txt
46
htm_files := $(patsubst %.txt, %.htm, $(txt_files))
48
pretty-html-docs: pretty_files
51
python -c "import os; os.mkdir('$(PRETTYDIR)')"
53
pretty_files: $(patsubst doc/%.txt, $(PRETTYDIR)/%.htm, $(txt_files))
56
python tools/rst2html.py --link-stylesheet --stylesheet=default.css doc/$*.txt doc/$*.htm
58
$(PRETTYDIR)/%.htm: pretty_docs doc/%.txt
59
python tools/rst2prettyhtml.py doc/bazaar-vcs.org.kid doc/$*.txt \
62
doc/bzr_man.txt: bzrlib/builtins.py \
63
bzrlib/bundle/commands.py \
65
bzrlib/sign_my_commits.py \
67
tools/doc_generate/__init__.py \
68
tools/doc_generate/autodoc_rstx.py
69
python generate_docs.py -o doc/bzr_man.txt rstx
74
python tools/win32/ostools.py copytodir $(htm_files) doc/default.css NEWS README win32_bzr.exe/doc
78
python tools/win32/ostools.py remove doc/bzr_man.txt $(htm_files) \
79
$(HTMLDIR) $(PRETTYDIR)
82
# make bzr.exe for win32 with py2exe
84
@echo *** Make bzr.exe
85
python setup.py py2exe > py2exe.log
86
python tools/win32/ostools.py copytodir tools/win32/start_bzr.bat win32_bzr.exe
87
python tools/win32/ostools.py copytodir tools/win32/bazaar.url win32_bzr.exe
89
# win32 installer for bzr.exe
90
installer: exe copy-docs
91
@echo *** Make windows installer
92
cog.py -d -o tools/win32/bzr.iss tools/win32/bzr.iss.cog
93
iscc /Q tools/win32/bzr.iss
95
# win32 python's distutils-based installer
96
# require to have python interpreter installed on win32
97
python-installer: docs
98
python setup.py bdist_wininst --install-script="bzr-win32-bdist-postinstall.py"
101
# clean on win32 all installer-related files and directories
103
python tools/win32/ostools.py remove build
104
python tools/win32/ostools.py remove win32_bzr.exe
105
python tools/win32/ostools.py remove py2exe.log
106
python tools/win32/ostools.py remove doc/*.htm
107
python tools/win32/ostools.py remove doc/bzr_man.txt
108
python tools/win32/ostools.py remove tools/win32/bzr.iss
109
python tools/win32/ostools.py remove bzr-setup*.exe
110
python tools/win32/ostools.py remove dist