Commit 1acb4060 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

When searching for a program, put the program in a subshell, so that

we can reliably divert the "program not found" error message to
stdout.  Use "find ... -print" instead of "find ... -ls", since -ls is
a GNU extension.
parent d1d24b60
......@@ -204,7 +204,7 @@ dviok=true
checkprgok=true
# We need "python".
if python -c "" 2>&1
if (python -c "") 2>&1
then
:
else
......@@ -217,7 +217,7 @@ fi
# We need the socket module from "python".
if $checkprgok
then
if python -c "import socket" 2>&1
if (python -c "import socket") 2>&1
then
:
else
......@@ -228,7 +228,7 @@ then
fi
# We need "runtest".
if runtest -V 2>&1
if (runtest -V) 2>&1
then
:
else
......@@ -244,7 +244,7 @@ then
fi
# We need "pdftex"
if pdftex --version 2>&1
if (pdftex --version) 2>&1
then
:
else
......@@ -253,7 +253,7 @@ else
fi
# We need "texi2dvi"
if texi2dvi --version 2>&1
if (texi2dvi --version) 2>&1
then
:
else
......@@ -262,7 +262,7 @@ else
fi
# We need "tex"
if tex --version 2>&1
if (tex --version) 2>&1
then
:
else
......@@ -327,7 +327,7 @@ do
mv $file r/`basename $file`.txt
fi
done
find $BASE -name core\* -ls > r/corefiles.txt
find $BASE -name core\* -print > r/corefiles.txt
if test `wc -l < r/corefiles.txt` -eq 0
then
rm r/corefiles.txt
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment