afe1b1998530d2e6c872762d5e71a1107b491944
[deb_dpdk.git] / debian / patches / mk-sort-list-of-files-in-examples.dox.patch
1 Description: mk: sort list of files in examples.dox
2
3 The result of find might not be stable depending on external
4 conditions.
5 Pipe it through LC_ALL=C sort to ensure reproducible results when
6 generating examples.dox.
7
8 Origin: http://dpdk.org/dev/patchwork/patch/25634/
9 Forwarded: yes
10 Author: Luca Boccassi <luca.boccassi@gmail.com>
11 Last-Update: 2017-06-22
12 ---
13  mk/rte.sdkdoc.mk | 2 +-
14  1 file changed, 1 insertion(+), 1 deletion(-)
15
16 diff --git a/mk/rte.sdkdoc.mk b/mk/rte.sdkdoc.mk
17 index c0eaa3502..de31b78cf 100644
18 --- a/mk/rte.sdkdoc.mk
19 +++ b/mk/rte.sdkdoc.mk
20 @@ -93,7 +93,7 @@ $(API_EXAMPLES): api-html-clean
21         $(Q)mkdir -p $(@D)
22         @printf '/**\n' > $(API_EXAMPLES)
23         @printf '@page examples DPDK Example Programs\n\n' >> $(API_EXAMPLES)
24 -       @find examples -type f -name '*.c' -printf '@example %p\n' >> $(API_EXAMPLES)
25 +       @find examples -type f -name '*.c' -printf '@example %p\n' | LC_ALL=C sort >> $(API_EXAMPLES)
26         @printf '*/\n' >> $(API_EXAMPLES)
27  
28  guides-pdf-clean: guides-pdf-img-clean
29 -- 
30 2.11.0
31