Add 6.10 - Build grep

This commit is contained in:
Aditya 2023-01-09 14:11:23 +05:30
parent fdfb551881
commit 9b79fb3b45
2 changed files with 36 additions and 0 deletions

View 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

View file

@ -287,3 +287,16 @@ then
stop_script "chapter6/6.9-gawk.sh" stop_script "chapter6/6.9-gawk.sh"
fi 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