diff --git a/scripts/chapter8/8.41-perl.sh b/scripts/chapter8/8.41-perl.sh new file mode 100644 index 0000000..4505f9d --- /dev/null +++ b/scripts/chapter8/8.41-perl.sh @@ -0,0 +1,43 @@ +#!/bin/bash + +cd /sources +tar xf perl-5.36.0.tar.xz +cd perl-5.36.0 + +export BUILD_ZLIB=False +export BUILD_BZIP2=0 + +sh Configure -des \ + -Dprefix=/usr \ + -Dvendorprefix=/usr \ + -Dprivlib=/usr/lib/perl5/5.36/core_perl \ + -Darchlib=/usr/lib/perl5/5.36/core_perl \ + -Dsitelib=/usr/lib/perl5/5.36/site_perl \ + -Dsitearch=/usr/lib/perl5/5.36/site_perl \ + -Dvendorlib=/usr/lib/perl5/5.36/vendor_perl \ + -Dvendorarch=/usr/lib/perl5/5.36/vendor_perl \ + -Dman1dir=/usr/share/man/man1 \ + -Dman3dir=/usr/share/man/man3 \ + -Dpager="/usr/bin/less -isR" \ + -Duseshrplib \ + -Dusethreads + +if [ $? -ne 0 ] +then + exit 1 +fi + +make -j5 + +if [ $? -ne 0 ] +then + exit 1 +fi + +make test + +make install +unset BUILD_ZLIB BUILD_BZIP2 + +cd /sources +rm -rf perl-5.36.0 diff --git a/scripts/main.sh b/scripts/main.sh index ec50e92..9ec086a 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -1031,3 +1031,15 @@ then stop_script "chapter8/8.40-less.sh" fi +# Chapter 8.41 +# ============ +echo "Building perl" +su -c "bash $SCRIPT/chapter8/8.41-perl.sh" + +# Exit on error +check_exit_code +if [ $exit_status -ne 0 ] +then + stop_script "chapter8/8.41-perl.sh" +fi +