mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Add 6.13 - Build patch
This commit is contained in:
parent
2efa0dd6ae
commit
2e34af59da
2 changed files with 38 additions and 0 deletions
27
scripts/chapter6/6.13-patch.sh
Normal file
27
scripts/chapter6/6.13-patch.sh
Normal 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
|
||||
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue