4
./bzr selftest -v $(tests)
5
@echo "Running all tests with no locale."
6
LC_CTYPE= LANG=C LC_ALL= ./bzr selftest -v $(tests)
9
./bzr --no-plugins selftest -v msgeditor
11
# Run Python style checker (apt-get install pyflakes)
16
# There are many of these warnings at the moment and they're not a
17
# high priority to fix
18
pyflakes bzrlib | grep -v ' imported but unused'
22
-find . -name "*.pyc" -o -name "*.pyo" | xargs rm -f
28
# build emacs cross-reference
29
tag_files=./bzr ./bzrlib/*py ./bzrlib/selftest/*.py
31
ctags-exuberant -e $(tag_files)
34
# Produce HTML docs to upload on Canonical server
38
python tools/win32/ostools.py copytodir $(htm_files) doc/default.css $(HTMLDIR)
41
# translate txt docs to html
43
txt_files := $(wildcard $(addsuffix /*.txt, $(doc_dir)))
44
htm_files := $(patsubst %.txt, %.htm, $(txt_files)) doc/bzr_man.htm
47
python tools/rst2html.py --link-stylesheet --stylesheet=default.css $*.txt $*.htm
49
doc/bzr_man.txt: bzrlib/builtins.py \
50
bzrlib/bundle/commands.py \
52
bzrlib/sign_my_commits.py \
54
tools/doc_generate/__init__.py \
55
tools/doc_generate/autodoc_rstx.py
56
python generate_docs.py -o doc/bzr_man.txt rstx
61
python tools/win32/ostools.py copytodir $(htm_files) doc/default.css NEWS README win32_bzr.exe/doc
65
python tools/win32/ostools.py remove doc/bzr_man.txt $(htm_files) $(HTMLDIR)
68
# make bzr.exe for win32 with py2exe
70
@echo *** Make bzr.exe
71
python setup.py py2exe > py2exe.log
72
python tools/win32/ostools.py copytodir tools/win32/start_bzr.bat win32_bzr.exe
73
python tools/win32/ostools.py copytodir tools/win32/bazaar.url win32_bzr.exe
75
# win32 installer for bzr.exe
76
installer: exe copy-docs
77
@echo *** Make windows installer
78
cog.py -d -o tools/win32/bzr.iss tools/win32/bzr.iss.cog
79
iscc /Q tools/win32/bzr.iss
81
# win32 python's distutils-based installer
82
# require to have python interpreter installed on win32
83
python-installer: docs
84
python setup.py bdist_wininst --title="Bazaar" --install-script="bzr-win32-bdist-postinstall.py"
87
# clean on win32 all installer-related files and directories
89
python tools/win32/ostools.py remove build
90
python tools/win32/ostools.py remove win32_bzr.exe
91
python tools/win32/ostools.py remove py2exe.log
92
python tools/win32/ostools.py remove doc/*.htm
93
python tools/win32/ostools.py remove doc/bzr_man.txt
94
python tools/win32/ostools.py remove tools/win32/bzr.iss
95
python tools/win32/ostools.py remove bzr-setup*.exe
96
python tools/win32/ostools.py remove dist