dependencies: bail out if makeinfo isn't found
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 15 Dec 2009 20:03:50 +0000 (21:03 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 15 Dec 2009 20:03:50 +0000 (21:03 +0100)
makeinfo is mandatory at least to build a toolchain. Currently,
dependencies.sh doesn't fail if makeinfo is not present and only
displays a message that can easily be lost. The user will then
encounter the issue later, when it is more difficult to understand
what's happening.

So, this patch simply does for makeinfo what the script does for the
other dependencies: bail out if they aren't available.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
toolchain/dependencies/dependencies.sh

index a3ee111c07baefd5a88b24ecd30a6f004b89d4e3..e503097b1f46ace1035c94236354d7feed6df30b 100755 (executable)
@@ -308,6 +308,7 @@ if ! which makeinfo > /dev/null ; then \
        /bin/echo -e "\n\nMost likely some packages will fail to build their documentation"
        echo "Either install 'makeinfo' on your host or fix the respective packages."
        echo "Makeinfo can usually be found in the texinfo package for your host."
+       exit 1
 else
        echo "makeinfo installed:                               Ok"
 fi