Add 6.13 - Build patch

This commit is contained in:
Aditya 2023-01-09 15:02:33 +05:30
parent 2efa0dd6ae
commit 2e34af59da
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,27 @@
#!/bin/bash
cd $LFS/sources
tar xf patch-2.7.6.tar.xz
cd patch-2.7.6
./configure --prefix=/usr \
--host=$LFS_TGT \
--build=$(build-aux/config.guess)
if [ $? -ne 0 ]
then
exit 1
fi
make -j5
if [ $? -ne 0 ]
then
exit 1
fi
make DESTIR=$LFS install
cd $LFS/sources
rm -rf patch-2.7.6

View file

@ -323,4 +323,15 @@ then
stop_script "chapter6/6.12-make.sh"
fi
# Chapter 6.13
# ============
echo "Building patch"
su - lfs -c "bash $PWD/chapter6/6.13-patch.sh"
# Exit on error
check_exit_code
if [ $exit_status -ne 0 ]
then
stop_script "chapter6/6.13-patch.sh"
fi