From: Jani Nikula <jani.nikula@linux.intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>,
igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t] build: allow to use rst2man from python3
Date: Thu, 06 Sep 2018 09:06:37 +0300 [thread overview]
Message-ID: <87k1nz17o2.fsf@intel.com> (raw)
In-Reply-To: <20180905184350.21344-1-lucas.demarchi@intel.com>
On Wed, 05 Sep 2018, Lucas De Marchi <lucas.demarchi@intel.com> wrote:
> While changing maintainer-tools to allow to use python3 I unsintalled my
> python2 tools, which broke IGT build for me. Allow to use either
> rst2man-3 or rst2man.
>
> v2: remove changes to autotools
>
> Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
I guess after all my nitpicking, an
Acked-by: Jani Nikula <jani.nikula@intel.com>
is in order.
Side note, if I install sphinx and docutils within a 'python3 -m venv'
virtual environment, the rst2man executable is called rst2man.py...
BR,
Jani.
> ---
> man/meson.build | 4 ++--
> man/rst2man.sh | 7 ++++---
> 2 files changed, 6 insertions(+), 5 deletions(-)
>
> diff --git a/man/meson.build b/man/meson.build
> index fa01f9dd..a6b08900 100644
> --- a/man/meson.build
> +++ b/man/meson.build
> @@ -22,14 +22,14 @@ defs_rst = configure_file(input : 'defs.rst.in',
> output : 'defs.rst',
> configuration : config)
>
> -rst2man = find_program('rst2man', required : _man_required)
> +rst2man = find_program('rst2man-3', 'rst2man', required : _man_required)
> rst2man_script = find_program('rst2man.sh')
>
> if _build_man and rst2man.found()
> foreach manpage : manpages
> custom_target(manpage + '.1',
> build_by_default : true,
> - command : [ rst2man_script, '@INPUT@', '@OUTPUT@' ],
> + command : [ rst2man_script, rst2man, '@INPUT@', '@OUTPUT@' ],
> depend_files : [ defs_rst ],
> input: manpage + '.rst',
> output : manpage + '.1.gz',
> diff --git a/man/rst2man.sh b/man/rst2man.sh
> index 8106ca4b..49a98fc5 100755
> --- a/man/rst2man.sh
> +++ b/man/rst2man.sh
> @@ -1,7 +1,8 @@
> #!/bin/bash
>
> -input=$1
> -output=$2
> +rst2man=$1
> +input=$2
> +output=$3
>
> out_dir=$(dirname "${output}")
> in_file=$(basename "${input}")
> @@ -10,7 +11,7 @@ in_file=$(basename "${input}")
> # generated we first need to move it all into the build dir
> cp "$input" "$out_dir"
>
> -rst2man "$out_dir/$in_file" "${output%.gz}"
> +${rst2man} "$out_dir/$in_file" "${output%.gz}"
>
> rm -f "${output}"
> gzip "${output%.gz}"
--
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2018-09-06 6:07 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-05 18:43 [igt-dev] [PATCH i-g-t] build: allow to use rst2man from python3 Lucas De Marchi
2018-09-05 19:36 ` [igt-dev] ✓ Fi.CI.BAT: success for build: allow to use rst2man from python3 (rev2) Patchwork
2018-09-06 2:24 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2018-09-06 6:06 ` Jani Nikula [this message]
2018-09-06 7:20 ` [igt-dev] [PATCH i-g-t] build: allow to use rst2man from python3 Lucas De Marchi
-- strict thread matches above, loose matches on Subject: below --
2018-08-31 15:29 Lucas De Marchi
2018-09-03 9:44 ` Petri Latvala
2018-09-04 11:56 ` Jani Nikula
2018-09-04 12:10 ` Daniel Vetter
2018-09-04 12:23 ` Jani Nikula
2018-09-04 16:00 ` Lucas De Marchi
2018-09-04 16:05 ` Lucas De Marchi
2018-09-04 18:35 ` Daniel Vetter
2018-09-05 9:06 ` Petri Latvala
2018-09-04 15:44 ` Lucas De Marchi
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=87k1nz17o2.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=lucas.demarchi@intel.com \
/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 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).