mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-12-22 15:22:56 +00:00
Add 8.30 - Build psmisc
This commit is contained in:
parent
ae7aaf3463
commit
88d20f392d
2 changed files with 36 additions and 0 deletions
24
scripts/chapter8/8.30-psmisc.sh
Normal file
24
scripts/chapter8/8.30-psmisc.sh
Normal file
|
@ -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
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue