diff --git a/scripts/chapter8/8.21-mpc.sh b/scripts/chapter8/8.21-mpc.sh new file mode 100644 index 0000000..1aeeb8f --- /dev/null +++ b/scripts/chapter8/8.21-mpc.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +cd /sources +tar xf mpc-1.2.1.tar.gz +cd mpc-1.2.1 + +./configure --prefix=/usr \ + --disable-static \ + --docdir=/usr/share/doc/mpc-1.2.1 + +if [ $? -ne 0 ] +then + exit 1 +fi + +make -j5 + +if [ $? -ne 0 ] +then + exit 1 +fi + +make hmtl + +make check + +make install +make install-html + +cd /sources +rm -rf mpc-1.2.1 + diff --git a/scripts/main.sh b/scripts/main.sh index 393dc36..bd1181a 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -786,3 +786,15 @@ then stop_script "chapter8/8.20-mpfr.sh" fi +# Chapter 8.21 +# ============ +echo "Building MPC" +su -c "bash $SCRIPT/chapter8/8.21-mpc.sh" + +# Exit on error +check_exit_code +if [ $exit_status -ne 0 ] +then + stop_script "chapter8/8.21-mpc.sh" +fi +