mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Add 6.15 - Build tar
This commit is contained in:
parent
46b76d8559
commit
ad4fa0892c
2 changed files with 39 additions and 0 deletions
27
scripts/chapter6/6.15-tar.sh
Normal file
27
scripts/chapter6/6.15-tar.sh
Normal file
|
@ -0,0 +1,27 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd $LFS/sources
|
||||
tar xf tar-1.34.tar.xz
|
||||
cd tar-1.34
|
||||
|
||||
./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 DESTDIR=$LFS install
|
||||
|
||||
cd $LFS/sources
|
||||
rm -rf tar-1.34
|
||||
|
|
@ -347,3 +347,15 @@ then
|
|||
stop_script "chapter6/6.14-sed.sh"
|
||||
fi
|
||||
|
||||
# Chapter 6.15
|
||||
# ============
|
||||
echo "Building tar"
|
||||
su - lfs -c "bash $PWD/chapter6/6.15-tar.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter6/6.15-tar.sh"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue