sphinx-pre-install (7c2d45a347c7933cbe0efff14fe96adeb13fd761) sphinx-pre-install (ed2133b7b5859bc1de86ed44d5cd93096cadc446)
1#!/usr/bin/env perl
2# SPDX-License-Identifier: GPL-2.0-or-later
3use strict;
4
5# Copyright (c) 2017-2020 Mauro Carvalho Chehab <mchehab@kernel.org>
6#
7
8my $prefix = "./";

--- 706 unchanged lines hidden (view full) ---

715 foreach my $f (@activates) {
716 next if ($f lt $min_activate);
717
718 my $sphinx_cmd = $f;
719 $sphinx_cmd =~ s/activate/sphinx-build/;
720 next if (! -f $sphinx_cmd);
721
722 my $ver = get_sphinx_version($sphinx_cmd);
1#!/usr/bin/env perl
2# SPDX-License-Identifier: GPL-2.0-or-later
3use strict;
4
5# Copyright (c) 2017-2020 Mauro Carvalho Chehab <mchehab@kernel.org>
6#
7
8my $prefix = "./";

--- 706 unchanged lines hidden (view full) ---

715 foreach my $f (@activates) {
716 next if ($f lt $min_activate);
717
718 my $sphinx_cmd = $f;
719 $sphinx_cmd =~ s/activate/sphinx-build/;
720 next if (! -f $sphinx_cmd);
721
722 my $ver = get_sphinx_version($sphinx_cmd);
723
724 if (!$ver) {
725 $f =~ s#/bin/activate##;
726 print("Warning: virtual environment $f is not working.\nPython version upgrade? Remove it with:\n\n\trm -rf $f\n\n");
727 }
728
723 if ($need_sphinx && ($ver ge $min_version)) {
724 return ($f, $ver);
725 } elsif ($ver gt $cur_version) {
726 return ($f, $ver);
727 }
728 }
729 return ("", "");
730}

--- 297 unchanged lines hidden ---
729 if ($need_sphinx && ($ver ge $min_version)) {
730 return ($f, $ver);
731 } elsif ($ver gt $cur_version) {
732 return ($f, $ver);
733 }
734 }
735 return ("", "");
736}

--- 297 unchanged lines hidden ---