dev.dpdk.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] version in doxygen
@ 2013-07-19 14:19 Thomas Monjalon
       [not found] ` <cover.1374243470.git.thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Monjalon @ 2013-07-19 14:19 UTC (permalink / raw)
  To: dev-VfR2kkLFssw

These 2 patches allow to print the DPDK version in doxygen header.
-- 
Thomas

---

  mk: add rule to print version number
  mk: insert version number in doxygen config

 mk/rte.sdkconfig.mk |    6 ++++++
 mk/rte.sdkdoc.mk    |    2 ++
 mk/rte.sdkroot.mk   |    4 ++--
 3 files changed, 10 insertions(+), 2 deletions(-)

-- 
1.7.10.4

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 1/2] mk: add rule to print version number
       [not found] ` <cover.1374243470.git.thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
@ 2013-07-19 14:19   ` Thomas Monjalon
       [not found]     ` <3bd9ee985e2d0ce0d2780ba0160ecd31bb502878.1374243470.git.thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
  2013-07-19 14:19   ` [PATCH 2/2] mk: insert version number in doxygen config Thomas Monjalon
  1 sibling, 1 reply; 7+ messages in thread
From: Thomas Monjalon @ 2013-07-19 14:19 UTC (permalink / raw)
  To: dev-VfR2kkLFssw

The version string is extracted from rte_version.h.
RTE_VER_* macros are concatenated and separators " . . r " are inserted.

Signed-off-by: Thomas Monjalon <thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
---
 mk/rte.sdkconfig.mk |    6 ++++++
 mk/rte.sdkroot.mk   |    4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/mk/rte.sdkconfig.mk b/mk/rte.sdkconfig.mk
index 2c071a2..6eb389c 100644
--- a/mk/rte.sdkconfig.mk
+++ b/mk/rte.sdkconfig.mk
@@ -31,6 +31,12 @@
 # 
 #  version: DPDK.L.1.2.3-3
 
+.PHONY: showversion
+showversion:
+	@sed -rn 's,^#define RTE_VER_[A-Z_]*[[:space:]]+([0-9]+).*,\1,p' \
+		$(RTE_SRCDIR)/lib/librte_eal/common/include/rte_version.h | \
+		tr '\n' '.' | sed -r 's,\.([0-9]+)\.$$,r\1\n,'
+
 INSTALL_CONFIGS := $(filter-out %~,\
 	$(patsubst $(RTE_SRCDIR)/config/defconfig_%,%,\
 	$(wildcard $(RTE_SRCDIR)/config/defconfig_*)))
diff --git a/mk/rte.sdkroot.mk b/mk/rte.sdkroot.mk
index 905b678..b5126c0 100644
--- a/mk/rte.sdkroot.mk
+++ b/mk/rte.sdkroot.mk
@@ -87,8 +87,8 @@ export ROOTDIRS-y ROOTDIRS- ROOTDIRS-n
 .PHONY: default
 default: all
 
-.PHONY: config showconfigs
-config showconfigs:
+.PHONY: config showconfigs showversion
+config showconfigs showversion:
 	$(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkconfig.mk $@
 
 .PHONY: test fast_test ring_test mempool_test
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 2/2] mk: insert version number in doxygen config
       [not found] ` <cover.1374243470.git.thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
  2013-07-19 14:19   ` [PATCH 1/2] mk: add rule to print version number Thomas Monjalon
@ 2013-07-19 14:19   ` Thomas Monjalon
       [not found]     ` <5450d495ffb15907a61e26e9640fc0170cc2ae4a.1374243470.git.thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
  1 sibling, 1 reply; 7+ messages in thread
From: Thomas Monjalon @ 2013-07-19 14:19 UTC (permalink / raw)
  To: dev-VfR2kkLFssw

The parameter PROJECT_NUMBER is used in the HTML header
via the template variable $projectnumber.

Signed-off-by: Thomas Monjalon <thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
---
 mk/rte.sdkdoc.mk |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/mk/rte.sdkdoc.mk b/mk/rte.sdkdoc.mk
index 96eec69..d0cda7a 100644
--- a/mk/rte.sdkdoc.mk
+++ b/mk/rte.sdkdoc.mk
@@ -54,6 +54,8 @@ htmlapi: htmlapi-clean
 	@echo 'doxygen for API...'
 	$(Q)mkdir -p $(RTE_OUTPUT)/doc/html
 	$(Q)(cat $(RTE_SDK)/doc/doxy-api.conf         && \
+	    printf 'PROJECT_NUMBER = '                && \
+	                      $(MAKE) -rR showversion && \
 	    echo OUTPUT_DIRECTORY = $(RTE_OUTPUT)/doc && \
 	    echo HTML_OUTPUT      = html/api          && \
 	    echo GENERATE_HTML    = YES               && \
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH 2/2] mk: insert version number in doxygen config
       [not found]     ` <5450d495ffb15907a61e26e9640fc0170cc2ae4a.1374243470.git.thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
@ 2013-07-19 19:17       ` Vincent JARDIN
       [not found]         ` <51E990D3.1010505-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Vincent JARDIN @ 2013-07-19 19:17 UTC (permalink / raw)
  To: dev-VfR2kkLFssw

it is just look n feel, just push it.

Acked-by: vincent.jardin-pdR9zngts4EAvxtiuMwx3w@public.gmane.org

On 19/07/2013 16:19, Thomas Monjalon wrote:
> The parameter PROJECT_NUMBER is used in the HTML header
> via the template variable $projectnumber.
>
> Signed-off-by: Thomas Monjalon <thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
> ---
>   mk/rte.sdkdoc.mk |    2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/mk/rte.sdkdoc.mk b/mk/rte.sdkdoc.mk
> index 96eec69..d0cda7a 100644
> --- a/mk/rte.sdkdoc.mk
> +++ b/mk/rte.sdkdoc.mk
> @@ -54,6 +54,8 @@ htmlapi: htmlapi-clean
>   	@echo 'doxygen for API...'
>   	$(Q)mkdir -p $(RTE_OUTPUT)/doc/html
>   	$(Q)(cat $(RTE_SDK)/doc/doxy-api.conf         && \
> +	    printf 'PROJECT_NUMBER = '                && \
> +	                      $(MAKE) -rR showversion && \
>   	    echo OUTPUT_DIRECTORY = $(RTE_OUTPUT)/doc && \
>   	    echo HTML_OUTPUT      = html/api          && \
>   	    echo GENERATE_HTML    = YES               && \
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] mk: add rule to print version number
       [not found]     ` <3bd9ee985e2d0ce0d2780ba0160ecd31bb502878.1374243470.git.thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
@ 2013-07-19 19:18       ` Vincent JARDIN
       [not found]         ` <51E990F3.1020809-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Vincent JARDIN @ 2013-07-19 19:18 UTC (permalink / raw)
  To: dev-VfR2kkLFssw

it is just look n feel, just push it.

Acked-by: vincent.jardin-pdR9zngts4EAvxtiuMwx3w@public.gmane.org

On 19/07/2013 16:19, Thomas Monjalon wrote:
> The version string is extracted from rte_version.h.
> RTE_VER_* macros are concatenated and separators " . . r " are inserted.
>
> Signed-off-by: Thomas Monjalon <thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
> ---
>   mk/rte.sdkconfig.mk |    6 ++++++
>   mk/rte.sdkroot.mk   |    4 ++--
>   2 files changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/mk/rte.sdkconfig.mk b/mk/rte.sdkconfig.mk
> index 2c071a2..6eb389c 100644
> --- a/mk/rte.sdkconfig.mk
> +++ b/mk/rte.sdkconfig.mk
> @@ -31,6 +31,12 @@
>   #
>   #  version: DPDK.L.1.2.3-3
>
> +.PHONY: showversion
> +showversion:
> +	@sed -rn 's,^#define RTE_VER_[A-Z_]*[[:space:]]+([0-9]+).*,\1,p' \
> +		$(RTE_SRCDIR)/lib/librte_eal/common/include/rte_version.h | \
> +		tr '\n' '.' | sed -r 's,\.([0-9]+)\.$$,r\1\n,'
> +
>   INSTALL_CONFIGS := $(filter-out %~,\
>   	$(patsubst $(RTE_SRCDIR)/config/defconfig_%,%,\
>   	$(wildcard $(RTE_SRCDIR)/config/defconfig_*)))
> diff --git a/mk/rte.sdkroot.mk b/mk/rte.sdkroot.mk
> index 905b678..b5126c0 100644
> --- a/mk/rte.sdkroot.mk
> +++ b/mk/rte.sdkroot.mk
> @@ -87,8 +87,8 @@ export ROOTDIRS-y ROOTDIRS- ROOTDIRS-n
>   .PHONY: default
>   default: all
>
> -.PHONY: config showconfigs
> -config showconfigs:
> +.PHONY: config showconfigs showversion
> +config showconfigs showversion:
>   	$(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkconfig.mk $@
>
>   .PHONY: test fast_test ring_test mempool_test
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] mk: add rule to print version number
       [not found]         ` <51E990F3.1020809-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
@ 2013-07-19 21:16           ` Thomas Monjalon
  0 siblings, 0 replies; 7+ messages in thread
From: Thomas Monjalon @ 2013-07-19 21:16 UTC (permalink / raw)
  To: dev-VfR2kkLFssw

19/07/2013 21:18, Vincent JARDIN :
> Acked-by: vincent.jardin-pdR9zngts4EAvxtiuMwx3w@public.gmane.org

pushed

-- 
Thomas

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 2/2] mk: insert version number in doxygen config
       [not found]         ` <51E990D3.1010505-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
@ 2013-07-19 21:18           ` Thomas Monjalon
  0 siblings, 0 replies; 7+ messages in thread
From: Thomas Monjalon @ 2013-07-19 21:18 UTC (permalink / raw)
  To: dev-VfR2kkLFssw

19/07/2013 21:17, Vincent JARDIN :
> Acked-by: vincent.jardin-pdR9zngts4EAvxtiuMwx3w@public.gmane.org

pushed

Now, the version number is shown on API doc:
	http://dpdk.org/doc/api/

-- 
Thomas

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-07-19 21:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-19 14:19 [PATCH 0/2] version in doxygen Thomas Monjalon
     [not found] ` <cover.1374243470.git.thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2013-07-19 14:19   ` [PATCH 1/2] mk: add rule to print version number Thomas Monjalon
     [not found]     ` <3bd9ee985e2d0ce0d2780ba0160ecd31bb502878.1374243470.git.thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2013-07-19 19:18       ` Vincent JARDIN
     [not found]         ` <51E990F3.1020809-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2013-07-19 21:16           ` Thomas Monjalon
2013-07-19 14:19   ` [PATCH 2/2] mk: insert version number in doxygen config Thomas Monjalon
     [not found]     ` <5450d495ffb15907a61e26e9640fc0170cc2ae4a.1374243470.git.thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2013-07-19 19:17       ` Vincent JARDIN
     [not found]         ` <51E990D3.1010505-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2013-07-19 21:18           ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).