diff --git a/scripts/chapter8/8.30-psmisc.sh b/scripts/chapter8/8.30-psmisc.sh new file mode 100644 index 0000000..f5e2645 --- /dev/null +++ b/scripts/chapter8/8.30-psmisc.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +cd /sources +tar xf psmisc-23.5.tar.xz +cd psmisc-23.5 + +./configure --prefix=/usr + +if [ $? -ne 0 ] +then + exit 1 +fi + +make -j5 + +if [ $? -ne 0 ] +then + exit 1 +fi + +make install + +cd /sources +rm -rf psmisc-23.5 diff --git a/scripts/main.sh b/scripts/main.sh index a0122e0..564b32c 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -894,3 +894,15 @@ then stop_script "chapter8/8.29-sed.sh" fi +# Chapter 8.30 +# ============ +echo "Building psmisc" +su -c "bash $SCRIPT/chapter8/8.30-psmisc.sh" + +# Exit on error +check_exit_code +if [ $exit_status -ne 0 ] +then + stop_script "chapter8/8.30-psmisc.sh" +fi +