Skip to content

Commit 53bced6

Browse files
committed
d/configure: Improved vebosity. Fixed interpretation of dependency check.
1 parent 7912df4 commit 53bced6

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

debian/configure

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,22 +221,27 @@ else
221221
echo " Building of documentation is disabled."
222222
fi
223223
echo " The DEB_BUILD_OPTIONS environment variable also works with dpkg-buildpackage."
224+
echo
224225

225226
if which dpkg-checkbuilddeps > /dev/null; then
226227

227228
if [ -n "$ENABLE_BUILD_DOCUMENTATION" ]; then
228-
a=$(cd .. && dpkg-checkbuilddeps || true)
229+
a=$(cd .. && dpkg-checkbuilddeps 2>&1 | sed -e "s/.*error://" || true)
230+
#echo "a=$a"
229231
if [ -n "$a" ]; then
230-
echo "W: To successfully build all of LinuxCNC, install the following build dependencies are mising:\n$a"
231-
echo " The missing packages are auto-installed by"
232+
echo "W: To successfully build all of LinuxCNC, install the following build dependencies are mising:"
233+
echo " $a"
234+
echo
235+
echo "I: Missing packages are auto-installed by"
232236
echo " sudo apt build-dep ."
233237
else
234238
echo "I: No build dependencies missing for complete builds including documentation."
235239
fi
236240
else
237-
a=$(cd .. && dpkg-checkbuilddeps -B || true)
241+
a=$(cd .. && dpkg-checkbuilddeps -B 2>&1 | sed -e "s/.*error://" || true)
238242
if [ -n "$a" ]; then
239-
echo "W: To successfully build LinuxCNC without documentation, the following build dependencies are mising:\n$a"
243+
echo "W: To successfully build LinuxCNC without documentation, the following build dependencies are mising:"
244+
echo " $a"
240245
else
241246
echo "I: No dependencies missing for building binaries only."
242247
fi

0 commit comments

Comments
 (0)