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
29
17
tag_files=./bzr ./bzrlib/*py ./bzrlib/selftest/*.py
31
19
ctags-exuberant -e $(tag_files)
34
# make bzr.exe for win32 with py2exe
37
setup.py py2exe > py2exe.log
38
copy /Y tools\win32\start_bzr.bat win32_bzr.exe\start_bzr.bat
39
copy /Y tools\win32\bazaar.url win32_bzr.exe\bazaar.url
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
rst2html.py --link-stylesheet --stylesheet=default.css $*.txt $*.htm
50
generate_docs.py -o doc/bzr_man.txt rstx
55
copy /Y NEWS win32_bzr.exe\NEWS
56
copy /Y README win32_bzr.exe\README
57
python tools/win32/copy_docs.py
59
# win32 installer for bzr.exe
60
installer: exe copy_docs
61
@echo Make windows installer
62
cog.py -d -o tools\win32\bzr.iss tools\win32\bzr.iss.cog
63
"C:\Program Files\Inno Setup 5\iscc" /Q tools\win32\bzr.iss
65
# win32 python's distutils-based installer
66
# require to have python interpreter installed on win32
67
python-installer: docs
68
python setup.py bdist_wininst --title="Bazaar" --install-script="bzr-win32-bdist-postinstall.py"
71
# clean on win32 all installer-related files and directories
73
if exist build rmdir /S /Q build
74
if exist win32_bzr.exe rmdir /S /Q win32_bzr.exe
75
if exist py2exe.log del /Q py2exe.log
76
if exist doc\*.htm del /Q doc\*.htm
77
if exist doc\bzr_man.txt del /Q doc\bzr_man.txt
78
if exist tools\win32\bzr.iss del /Q tools\win32\bzr.iss
79
if exist bzr-setup*.exe del /Q bzr-setup*.exe
80
if exist dist rmdir /S /Q dist