mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Add 8.22 - Build attr
This commit is contained in:
parent
5ec63bbd7d
commit
8f71d6c33b
2 changed files with 42 additions and 0 deletions
30
scripts/chapter8/8.22-attr.sh
Normal file
30
scripts/chapter8/8.22-attr.sh
Normal file
|
@ -0,0 +1,30 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /sources
|
||||
tar xf attr-2.5.1.tar.gz
|
||||
cd attr-2.5.1
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--disable-static \
|
||||
--sysconfdir=/etc \
|
||||
--docdir=/usr/share/doc/attr-2.5.1
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make -j5
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make check
|
||||
|
||||
make install
|
||||
|
||||
cd /sources
|
||||
rm -rf attr-2.5.1
|
||||
|
|
@ -798,3 +798,15 @@ then
|
|||
stop_script "chapter8/8.21-mpc.sh"
|
||||
fi
|
||||
|
||||
# Chapter 8.22
|
||||
# ============
|
||||
echo "Building attr"
|
||||
su -c "bash $SCRIPT/chapter8/8.22-attr.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter8/8.22-attr.sh"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue