/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar
0.200.55 by Jelmer Vernooij
Add Makefile.
1
DEBUGGER ?= 
0.200.1646 by Jelmer Vernooij
Rename bzrlib to breezy.
2
BRZ_OPTIONS ?= 
3
BRZ ?= $(shell which brz)
0.200.55 by Jelmer Vernooij
Add Makefile.
4
PYTHON ?= $(shell which python)
5
SETUP ?= ./setup.py
6
PYDOCTOR ?= pydoctor
7
CTAGS ?= ctags
8
PYLINT ?= pylint
9
RST2HTML ?= rst2html
0.290.3 by Jelmer Vernooij
Set workingtree_format on LocalGitDirFormat.
10
TESTS ?= ^breezy.plugins.git. Git breezy.tests.test_info.TestInfo.test_describe_tree_format breezy.tests.test_errors.TestErrors.test_no_arg_named_message breezy.tests.test_info.TestInfo.test_describe_checkout_format
0.200.1672 by Jelmer Vernooij
Add xfail file.
11
SUBUNIT_FILTER ?= subunit-filter --fixup-expected-failures=xfail --success --xfail
0.200.1673 by Jelmer Vernooij
Add target for finding failing tests.
12
SUBUNIT_FORMATTER = subunit2pyunit
0.200.55 by Jelmer Vernooij
Add Makefile.
13
14
all:: build 
15
16
build::
17
	$(SETUP) build
18
19
build-inplace::
20
21
install::
22
	$(SETUP) install
23
24
clean::
25
	$(SETUP) clean
26
	rm -f *.so
27
0.200.972 by Jelmer Vernooij
Use BZR_PLUGINS_AT.
28
check:: build-inplace 
0.200.1673 by Jelmer Vernooij
Add target for finding failing tests.
29
	BRZ_PLUGINS_AT=git@$(shell pwd) BRZ_PLUGIN_PATH=-site:-user $(DEBUGGER) $(PYTHON) $(PYTHON_OPTIONS) $(BRZ) $(BRZ_OPTIONS) selftest --subunit2 $(TEST_OPTIONS) $(TESTS) | $(SUBUNIT_FILTER) | $(SUBUNIT_FORMATTER)
30
31
list-failing-tests:
0.200.1686 by Jelmer Vernooij
Fix list-failing-test generation.
32
	$(MAKE) check SUBUNIT_FILTER="subunit-filter -F" SUBUNIT_FORMATTER=subunit-ls | grep -e "^breezy\\." | sort
0.200.55 by Jelmer Vernooij
Add Makefile.
33
0.200.1687 by Jelmer Vernooij
Add xfail target.
34
xfail:
35
	$(MAKE) -s list-failing-tests > xfail
36
0.200.1160 by Jelmer Vernooij
Add check-all target.
37
check-all::
0.200.1672 by Jelmer Vernooij
Add xfail file.
38
	$(MAKE) check TESTS="^breezy.plugins.git. Git" SUBUNIT_FILTER=cat
0.200.1160 by Jelmer Vernooij
Add check-all target.
39
0.200.55 by Jelmer Vernooij
Add Makefile.
40
check-verbose::
41
	$(MAKE) check TEST_OPTIONS=-v
42
43
check-one::
44
	$(MAKE) check TEST_OPTIONS=--one
45
46
check-random::
47
	$(MAKE) check TEST_OPTIONS="--random=now --verbose --one"
48
49
show-plugins::
0.200.1646 by Jelmer Vernooij
Rename bzrlib to breezy.
50
	BRZ_PLUGINS_AT=git@$(shell pwd) $(BRZ) plugins -v
0.200.55 by Jelmer Vernooij
Add Makefile.
51
52
lint::
53
	$(PYLINT) -f parseable *.py */*.py
54
55
tags::
56
	$(CTAGS) -R .
57
58
ctags:: tags
0.200.925 by Jelmer Vernooij
avoid loading other plugins during tests, fix coverage
59
60
coverage::
0.200.1646 by Jelmer Vernooij
Rename bzrlib to breezy.
61
	$(MAKE) check BRZ_OPTIONS="--coverage coverage"
0.200.1405 by Jelmer Vernooij
Add i18n support.
62
0.200.1646 by Jelmer Vernooij
Rename bzrlib to breezy.
63
.PHONY: update-pot po/brz-git.pot
64
update-pot: po/brz-git.pot
0.200.1405 by Jelmer Vernooij
Add i18n support.
65
66
TRANSLATABLE_PYFILES:=$(shell find . -name '*.py' \
67
		| grep -v 'tests/' \
68
		)
69
0.200.1646 by Jelmer Vernooij
Rename bzrlib to breezy.
70
po/brz-git.pot: $(PYFILES) $(DOCFILES)
71
	BRZ_PLUGINS_AT=git@$(shell pwd) brz export-pot \
72
          --plugin=git > po/brz-git.pot
0.200.1405 by Jelmer Vernooij
Add i18n support.
73
	echo $(TRANSLATABLE_PYFILES) | xargs \
0.200.1646 by Jelmer Vernooij
Rename bzrlib to breezy.
74
	xgettext --package-name "brz-git" \
0.200.1405 by Jelmer Vernooij
Add i18n support.
75
	  --msgid-bugs-address "<bazaar@lists.canonical.com>" \
76
	  --copyright-holder "Canonical Ltd <canonical-bazaar@lists.canonical.com>" \
77
	  --from-code ISO-8859-1 --sort-by-file --join --add-comments=i18n: \
0.200.1646 by Jelmer Vernooij
Rename bzrlib to breezy.
78
	  -d brz-git -p po -o brz-git.pot
0.200.1687 by Jelmer Vernooij
Add xfail target.
79
80
.PHONY: xfail