Merge lp:~jelmer/brz/reproducible into lp:brz

Proposed by Jelmer Vernooij
Status: Merged
Approved by: Jelmer Vernooij
Approved revision: no longer in the source branch.
Merge reported by: The Breezy Bot
Merged at revision: not available
Proposed branch: lp:~jelmer/brz/reproducible
Merge into: lp:brz
Diff against target: 129 lines (+34/-30)
1 file modified
Makefile (+34/-30)
To merge this branch: bzr merge lp:~jelmer/brz/reproducible
Reviewer Review Type Date Requested Status
Martin Packman Approve
Review via email: mp+324824@code.launchpad.net

Commit message

Sort files in Makefile to make doc output consistent.

Description of the change

Sort files in Makefile to make doc output consistent.

This is necessary to make the build reproducible.

To post a comment you must log in.
Revision history for this message
Martin Packman (gz) :
review: Approve
Revision history for this message
The Breezy Bot (the-breezy-bot) wrote :

A commit message must be set
http://10.242.247.184:8080/job/brz-dev/28/

Revision history for this message
The Breezy Bot (the-breezy-bot) wrote :

A commit message must be set
http://10.242.247.184:8080/job/brz-dev/31/

Revision history for this message
The Breezy Bot (the-breezy-bot) wrote :

Running landing tests failed
http://10.242.247.184:8080/job/brz-dev/33/

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Makefile'
2--- Makefile 2017-05-24 14:51:33 +0000
3+++ Makefile 2017-05-30 23:40:33 +0000
4@@ -28,6 +28,10 @@
5 PLUGIN_TARGET=plugin-release
6 PYTHON_BUILDFLAGS=
7
8+# Shorter replacement for $(sort $(wildcard <arg>)) as $(call sw,<arg>)
9+sw = $(sort $(wildcard $(1)))
10+
11+
12 .PHONY: all clean realclean extensions pyflakes api-docs check-nodocs check
13
14 all: extensions
15@@ -106,10 +110,10 @@
16 ### Man-page Documentation ###
17
18 MAN_DEPENDENCIES = breezy/builtins.py \
19- $(wildcard breezy/*.py) \
20- $(wildcard breezy/*/*.py) \
21+ $(call sw,breezy/*.py) \
22+ $(call sw,breezy/*/*.py) \
23 tools/generate_docs.py \
24- $(wildcard $(addsuffix /*.txt, breezy/help_topics/en))
25+ $(call sw,$(addsuffix /*.txt, breezy/help_topics/en))
26
27 MAN_PAGES = man1/brz.1
28 man1/brz.1: $(MAN_DEPENDENCIES)
29@@ -145,7 +149,7 @@
30 doc/developers/Makefile \
31 doc/developers/make.bat
32
33-NEWS_FILES = $(wildcard doc/en/release-notes/brz-*.txt)
34+NEWS_FILES = $(call sw,doc/en/release-notes/brz-*.txt)
35
36 doc/en/user-reference/index.txt: $(MAN_DEPENDENCIES)
37 LANGUAGE=C $(PYTHON) tools/generate_docs.py -o $@ rstx
38@@ -229,19 +233,19 @@
39 doc/en/tutorials/tutorial.txt \
40 doc/en/tutorials/using_breezy_with_launchpad.txt \
41 doc/en/tutorials/centralized_workflow.txt \
42- $(wildcard doc/es/tutorials/*.txt) \
43- $(wildcard doc/ru/tutorials/*.txt) \
44+ $(call sw,doc/es/tutorials/*.txt) \
45+ $(call sw,doc/ru/tutorials/*.txt) \
46 doc/ja/tutorials/tutorial.txt \
47 doc/ja/tutorials/using_bazaar_with_launchpad.txt \
48 doc/ja/tutorials/centralized_workflow.txt \
49- $(wildcard doc/*/mini-tutorial/index.txt) \
50- $(wildcard doc/*/user-guide/index-plain.txt) \
51+ $(call sw,doc/*/mini-tutorial/index.txt) \
52+ $(call sw,doc/*/user-guide/index-plain.txt) \
53 doc/en/admin-guide/index-plain.txt \
54- $(wildcard doc/es/guia-usario/*.txt) \
55+ $(call sw,doc/es/guia-usario/*.txt) \
56 $(derived_txt_files) \
57 doc/en/upgrade-guide/index.txt \
58 doc/index.txt \
59- $(wildcard doc/index.*.txt)
60+ $(call sw,doc/index.*.txt)
61 txt_nohtml = \
62 doc/en/user-guide/index.txt \
63 doc/es/user-guide/index.txt \
64@@ -253,16 +257,16 @@
65
66 non_txt_files = \
67 doc/default.css \
68- $(wildcard doc/*/brz-en-quick-reference.svg) \
69- $(wildcard doc/*/brz-en-quick-reference.png) \
70- $(wildcard doc/*/brz-en-quick-reference.pdf) \
71- $(wildcard doc/*/bzr-es-quick-reference.svg) \
72- $(wildcard doc/*/bzr-es-quick-reference.png) \
73- $(wildcard doc/*/bzr-es-quick-reference.pdf) \
74- $(wildcard doc/*/bzr-ru-quick-reference.svg) \
75- $(wildcard doc/*/bzr-ru-quick-reference.png) \
76- $(wildcard doc/*/bzr-ru-quick-reference.pdf) \
77- $(wildcard doc/*/user-guide/images/*.png)
78+ $(call sw,doc/*/brz-en-quick-reference.svg) \
79+ $(call sw,doc/*/brz-en-quick-reference.png) \
80+ $(call sw,doc/*/brz-en-quick-reference.pdf) \
81+ $(call sw,doc/*/bzr-es-quick-reference.svg) \
82+ $(call sw,doc/*/bzr-es-quick-reference.png) \
83+ $(call sw,doc/*/bzr-es-quick-reference.pdf) \
84+ $(call sw,doc/*/bzr-ru-quick-reference.svg) \
85+ $(call sw,doc/*/bzr-ru-quick-reference.png) \
86+ $(call sw,doc/*/bzr-ru-quick-reference.pdf) \
87+ $(call sw,doc/*/user-guide/images/*.png)
88
89 # doc/developers/*.txt files that should *not* be individually
90 # converted to HTML
91@@ -292,20 +296,20 @@
92 doc/developers/status.txt \
93 doc/developers/uncommit.txt
94
95-dev_txt_all = $(wildcard $(addsuffix /*.txt, doc/developers))
96+dev_txt_all = $(call sw,$(addsuffix /*.txt, doc/developers))
97 dev_txt_files = $(filter-out $(dev_txt_nohtml), $(dev_txt_all))
98 dev_htm_files = $(patsubst %.txt, %.html, $(dev_txt_files))
99
100-doc/en/user-guide/index-plain.html: $(wildcard $(addsuffix /*.txt, doc/en/user-guide))
101+doc/en/user-guide/index-plain.html: $(call sw,$(addsuffix /*.txt, doc/en/user-guide))
102 $(rst2html) --stylesheet=../../default.css $(dir $@)index-plain.txt $@
103
104-#doc/es/user-guide/index.html: $(wildcard $(addsuffix /*.txt, doc/es/user-guide))
105-# $(rst2html) --stylesheet=../../default.css $(dir $@)index.txt $@
106-#
107-#doc/ru/user-guide/index.html: $(wildcard $(addsuffix /*.txt, doc/ru/user-guide))
108-# $(rst2html) --stylesheet=../../default.css $(dir $@)index.txt $@
109-#
110-doc/en/admin-guide/index-plain.html: $(wildcard $(addsuffix /*.txt, doc/en/admin-guide))
111+#doc/es/user-guide/index.html: $(call sw,$(addsuffix /*.txt, doc/es/user-guide))
112+# $(rst2html) --stylesheet=../../default.css $(dir $@)index.txt $@
113+#
114+#doc/ru/user-guide/index.html: $(call sw,$(addsuffix /*.txt, doc/ru/user-guide))
115+# $(rst2html) --stylesheet=../../default.css $(dir $@)index.txt $@
116+#
117+doc/en/admin-guide/index-plain.html: $(call sw,$(addsuffix /*.txt, doc/en/admin-guide))
118 $(rst2html) --stylesheet=../../default.css $(dir $@)index-plain.txt $@
119
120 doc/developers/%.html: doc/developers/%.txt
121@@ -323,7 +327,7 @@
122 doc/en/release-notes/NEWS.txt: $(NEWS_FILES) tools/generate_release_notes.py
123 $(PYTHON) tools/generate_release_notes.py "$@" $(NEWS_FILES)
124
125-upgrade_guide_dependencies = $(wildcard $(addsuffix /*.txt, doc/en/upgrade-guide))
126+upgrade_guide_dependencies = $(call sw,$(addsuffix /*.txt, doc/en/upgrade-guide))
127
128 doc/en/upgrade-guide/index.html: $(upgrade_guide_dependencies)
129 $(rst2html) --stylesheet=../../default.css $(dir $@)index.txt $@

Subscribers

People subscribed via source and target branches