All of lore.kernel.org
 help / color / mirror / Atom feed
From: Duncan Roe <duncan.roe2@gmail.com>
To: Jan Engelhardt <jengelh@inai.de>
Cc: netfilter-devel@vger.kernel.org, duncan_roe@optusnet.com.au
Subject: Re: [PATCH libnetfilter_queue 1/1] build: doc: `make distcheck` passes with doxygen enabled
Date: Wed, 21 Apr 2021 12:17:45 +1000	[thread overview]
Message-ID: <20210421021745.GA9334@smallstar.local.net> (raw)
In-Reply-To: <3219so45-rsq1-8093-77pr-39oo80or6q@vanv.qr>

Hi Jan,

On Tue, Apr 20, 2021 at 11:54:41AM +0200, Jan Engelhardt wrote:
>
> On Tuesday 2021-04-20 06:23, Duncan Roe wrote:
> >-AS_IF([test "x$with_doxygen" = xyes], [
> >+	    [create doxygen documentation])],
> >+	    [with_doxygen="$withval"], [with_doxygen=yes])
> >+
> >+AS_IF([test "x$with_doxygen" != xno], [
> > 	AC_CHECK_PROGS([DOXYGEN], [doxygen])
> > 	AC_CHECK_PROGS([DOT], [dot], [""])
> > 	AS_IF([test "x$DOT" != "x"],
> >@@ -48,6 +49,10 @@ AS_IF([test "x$with_doxygen" = xyes], [
> > ])
> >
> > AM_CONDITIONAL([HAVE_DOXYGEN], [test -n "$DOXYGEN"])
> >+if test -z "$DOXYGEN"; then
>
> If you use AS_IF above, you could also make use of it here :)

Happy to do that, but could you spell out the actual line please? My grasp of m4
is tenuous at best - I only copy stuff that I see working elsewhere.

In this case I copied Florian Westphal's code from 3622e606.
>
> >+# move it out of the way and symlink the real one while we run doxygen.
> >+	cd ..; [ $$(ls src | wc -l) -gt 8 ] ||\
>
> This looks like it could break anytime (say, when it happens to get to 9
> files). Can't it test for a specific filename or set of names?

OK I can test for existence of Makefile.in.
>
> >+       function main { set -e; cd man/man3; rm -f _*;\
>
> The syntax for POSIX sh-compatible functions should be
>
> 	main() { ...

Rats! I had it that way, but the old fixmanpages.sh had 'function' so I changed
it to minimise the diff. Will change back to POSIX way in v2.
>
> >+function setgroup { mv $$1.3 $$2.3; BASE=$$2; };\
> >+function add2group { for i in $$@; do ln -sf $$BASE.3 $$i.3; done; };\
>
> Should be quoted, i.e. "$$@". Might as well do it for the other vars.

"Should be"? We're dealing with man page names. If unquoted $$@ fails, we've got
other problems. Or is it a style thing? Do you want I should quote $$BASE, $$1 &
$$2 as well?

  reply	other threads:[~2021-04-21  2:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-20  4:23 Now have make distcheck passing with doxygen enabled Duncan Roe
2021-04-20  4:23 ` [PATCH libnetfilter_queue 1/1] build: doc: `make distcheck` passes " Duncan Roe
2021-04-20  9:54   ` Jan Engelhardt
2021-04-21  2:17     ` Duncan Roe [this message]
2021-04-21  7:21       ` Jan Engelhardt
2021-04-21 12:25         ` Duncan Roe
2021-04-21 16:25           ` Jan Engelhardt
2021-04-22  9:35             ` [PATCH libnetfilter_queue v2] " Duncan Roe
2021-04-28 23:59               ` Duncan Roe
2021-04-29  9:11                 ` Jan Engelhardt
2021-05-02 21:45               ` Pablo Neira Ayuso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210421021745.GA9334@smallstar.local.net \
    --to=duncan.roe2@gmail.com \
    --cc=duncan_roe@optusnet.com.au \
    --cc=jengelh@inai.de \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.