mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-12-22 15:22:56 +00:00
Add 6.10 - Build grep
This commit is contained in:
parent
fdfb551881
commit
9b79fb3b45
2 changed files with 36 additions and 0 deletions
23
scripts/chapter6/6.10-grep.sh
Normal file
23
scripts/chapter6/6.10-grep.sh
Normal file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd $LFS/sources
|
||||
tar xf grep-3.7.tar.xz
|
||||
cd grep-3.7
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--host=$LFS_TGT
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make -j5
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make DESTDIR=$LFS install
|
||||
|
|
@ -287,3 +287,16 @@ then
|
|||
stop_script "chapter6/6.9-gawk.sh"
|
||||
fi
|
||||
|
||||
# Chapter 6.10
|
||||
# ============
|
||||
echo "Building grep"
|
||||
su - lfs -c "bash $PWD/chapter6/6.10-grep.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue