Skip to content

Commit

Permalink
dfadfasd
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
  • Loading branch information
dbaluta committed Jan 31, 2023
1 parent 366030f commit b30ad01
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion scripts/sphinx-pre-install
Original file line number Diff line number Diff line change
Expand Up @@ -964,22 +964,52 @@ sub check_needs()
}
}


print "need (1) $need\n";
# Check for needed programs/tools
check_perl_module("Pod::Usage", 0);

print "need (2) $need\n";
# Check for needed programs/tools
check_program("make", 0);

print "need (3) $need\n";
# Check for needed programs/tools
check_program("gcc", 0);

print "need (4) $need\n";
# Check for needed programs/tools
check_python_module("sphinx_rtd_theme", 1) if (!$virtualenv);

print "need (5) $need\n";
# Check for needed programs/tools
check_program("dot", 1);

print "need (6) $need\n";
# Check for needed programs/tools
check_program("convert", 1);

print "need (7) $need\n";
# Check for needed programs/tools
# Extra PDF files - should use 2 for is_optional
check_program("xelatex", 2) if ($pdf);

print "need (8) $need\n";
# Check for needed programs/tools
check_program("rsvg-convert", 2) if ($pdf);

print "need (9) $need\n";
# Check for needed programs/tools
check_program("latexmk", 2) if ($pdf);

print "need (10) $need\n";
# Check for needed programs/tools
# Do distro-specific checks and output distro-install commands
check_distros();


print "need (11) $need\n";
# Check for needed programs/tools
if (!$python_cmd) {
if ($need == 1) {
die "Can't build as $need mandatory dependency is missing";
Expand All @@ -1003,7 +1033,7 @@ sub check_needs()
printf "Hello\n";
printf "python: ---- %s -----\n", which("python");
printf "python3: ---- %s -----\n", which("python3-sphinx");
print "list files --- %s ----\n", `ls -al /usr/bin/python`
print "list files --- %s ----\n", system("ls -al /usr/bin/python");
printf "sphinx-build-3---- %s -----\n", which("sphinx-build-3");
printf "hello\n";

Expand Down

0 comments on commit b30ad01

Please sign in to comment.