Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] compress_doc.bbclass: improve manual file detection
@ 2014-11-08  5:56 Hongxu Jia
  2014-11-08  5:56 ` [PATCH 1/1] " Hongxu Jia
  2014-11-25  6:46 ` [PATCH 0/1] " Hongxu Jia
  0 siblings, 2 replies; 3+ messages in thread
From: Hongxu Jia @ 2014-11-08  5:56 UTC (permalink / raw)
  To: openembedded-core, ross.burton

The following changes since commit 7bd03ac24114b2c6015144a37e0c3fb4037baea6:

  bitbake: toastergui: fix invalid build url usage (2014-11-06 16:45:23 +0000)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib hongxu/fix-doc
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/fix-doc

Hongxu Jia (1):
  compress_doc.bbclass: improve manual file detection

 meta/classes/compress_doc.bbclass | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

-- 
1.9.1



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

* [PATCH 1/1] compress_doc.bbclass: improve manual file detection
  2014-11-08  5:56 [PATCH 0/1] compress_doc.bbclass: improve manual file detection Hongxu Jia
@ 2014-11-08  5:56 ` Hongxu Jia
  2014-11-25  6:46 ` [PATCH 0/1] " Hongxu Jia
  1 sibling, 0 replies; 3+ messages in thread
From: Hongxu Jia @ 2014-11-08  5:56 UTC (permalink / raw)
  To: openembedded-core, ross.burton

The previous detection missing the following manual file:
...
gawk-doc/usr/share/man/man3/readfile.3am
libpcap-doc/usr/share/man/man3/pcap_dump_open.3pcap
...

We use re to imporve it.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 meta/classes/compress_doc.bbclass | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/meta/classes/compress_doc.bbclass b/meta/classes/compress_doc.bbclass
index 6a4e635..afa9cd6 100644
--- a/meta/classes/compress_doc.bbclass
+++ b/meta/classes/compress_doc.bbclass
@@ -136,11 +136,14 @@ def _is_info(file):
     return False
 
 def _is_man(file):
+    import re
+
     # It refers MANSECT-var in man(1.6g)'s man.config
-    flags = '.1:.1p:.8:.2:.3:.3p:.4:.5:.6:.7:.9:.0p:.tcl:.n:.l:.p:.o'.split(':')
-    for flag in flags:
-        if os.path.basename(file).endswith(flag):
-            return True
+    # ".1:.1p:.8:.2:.3:.3p:.4:.5:.6:.7:.9:.0p:.tcl:.n:.l:.p:.o"
+    # Not start with '.', and contain the above colon-seperate element
+    p = re.compile(r'[^\.]+\.([1-9lnop]|0p|tcl)')
+    if p.search(file):
+        return True
 
     return False
 
-- 
1.9.1



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

* Re: [PATCH 0/1] compress_doc.bbclass: improve manual file detection
  2014-11-08  5:56 [PATCH 0/1] compress_doc.bbclass: improve manual file detection Hongxu Jia
  2014-11-08  5:56 ` [PATCH 1/1] " Hongxu Jia
@ 2014-11-25  6:46 ` Hongxu Jia
  1 sibling, 0 replies; 3+ messages in thread
From: Hongxu Jia @ 2014-11-25  6:46 UTC (permalink / raw)
  To: openembedded-core, ross.burton

On 11/08/2014 01:56 PM, Hongxu Jia wrote:
> The following changes since commit 7bd03ac24114b2c6015144a37e0c3fb4037baea6:
>
>    bitbake: toastergui: fix invalid build url usage (2014-11-06 16:45:23 +0000)
>
> are available in the git repository at:
>
>    git://git.pokylinux.org/poky-contrib hongxu/fix-doc
>    http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/fix-doc

Ping

//Hongxu

> Hongxu Jia (1):
>    compress_doc.bbclass: improve manual file detection
>
>   meta/classes/compress_doc.bbclass | 11 +++++++----
>   1 file changed, 7 insertions(+), 4 deletions(-)
>



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

end of thread, other threads:[~2014-11-25  6:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-08  5:56 [PATCH 0/1] compress_doc.bbclass: improve manual file detection Hongxu Jia
2014-11-08  5:56 ` [PATCH 1/1] " Hongxu Jia
2014-11-25  6:46 ` [PATCH 0/1] " Hongxu Jia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox