diff --git a/scripts/chapter8/8.42-xml-parser.sh b/scripts/chapter8/8.42-xml-parser.sh new file mode 100644 index 0000000..0faf92c --- /dev/null +++ b/scripts/chapter8/8.42-xml-parser.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +cd /sources +tar xf XML-Parser-2.46.tar.gz +cd XML-Parser-2.46 + +perl Makefile.PL + +if [ $? -ne 0 ] +then + exit 1 +fi + +make -j5 + +if [ $? -ne 0 ] +then + exit 1 +fi + +make test + +make install + +cd /sources +rm -rf XML-Parser-2.46 diff --git a/scripts/main.sh b/scripts/main.sh index 9ec086a..a440a2a 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -1043,3 +1043,15 @@ then stop_script "chapter8/8.41-perl.sh" fi +# Chapter 8.42 +# ============ +echo "Building XML::Parser" +su -c "bash $SCRIPT/chapter8/8.42-xml-parser.sh" + +# Exit on error +check_exit_code +if [ $exit_status -ne 0 ] +then + stop_script "chapter8/8.42-xml-parser.sh" +fi +