summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@gmail.com>2017-10-12 14:15:50 +0100
committerThomas Monjalon <thomas@monjalon.net>2017-10-12 22:31:33 +0200
commit4303c26ea874ad6ab74a291dd2165095c316e0cd (patch)
treedb080cec844b05cc016f8b79d8b2458b2e5d098c
parent6a57b47d8733cc3a812432530e3de45c146e7d29 (diff)
downloaddpdk-4303c26ea874ad6ab74a291dd2165095c316e0cd.zip
dpdk-4303c26ea874ad6ab74a291dd2165095c316e0cd.tar.gz
dpdk-4303c26ea874ad6ab74a291dd2165095c316e0cd.tar.xz
mk: sort list of examples files in doc
The result of find might not be stable depending on external conditions. Pipe it through LC_ALL=C sort to ensure reproducible results when generating examples.dox. Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
-rw-r--r--mk/rte.sdkdoc.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/mk/rte.sdkdoc.mk b/mk/rte.sdkdoc.mk
index c0eaa35..de31b78 100644
--- a/mk/rte.sdkdoc.mk
+++ b/mk/rte.sdkdoc.mk
@@ -93,7 +93,7 @@ $(API_EXAMPLES): api-html-clean
$(Q)mkdir -p $(@D)
@printf '/**\n' > $(API_EXAMPLES)
@printf '@page examples DPDK Example Programs\n\n' >> $(API_EXAMPLES)
- @find examples -type f -name '*.c' -printf '@example %p\n' >> $(API_EXAMPLES)
+ @find examples -type f -name '*.c' -printf '@example %p\n' | LC_ALL=C sort >> $(API_EXAMPLES)
@printf '*/\n' >> $(API_EXAMPLES)
guides-pdf-clean: guides-pdf-img-clean