mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-09 23:19:44 +00:00
Add 6.11 - Build gzip
This commit is contained in:
parent
9b79fb3b45
commit
5d97b5afae
2 changed files with 37 additions and 1 deletions
25
scripts/chapter6/6.11-gzip.sh
Normal file
25
scripts/chapter6/6.11-gzip.sh
Normal file
|
@ -0,0 +1,25 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd $LFS/sources
|
||||
tar xf gzip-1.12.tar.xz
|
||||
cd gzip-1.12
|
||||
|
||||
./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
|
||||
|
||||
cd $LFS/sources
|
||||
rm -rf gzip-1.12
|
||||
|
|
@ -296,7 +296,18 @@ su - lfs -c "bash $PWD/chapter6/6.10-grep.sh"
|
|||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
stop_script "chapter6/6.10-grep.sh"
|
||||
fi
|
||||
|
||||
# Chapter 6.11
|
||||
# ============
|
||||
echo "Building gzip"
|
||||
su - lfs -c "bash $PWD/chapter6/6.11-gzip.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter6/6.11-gzip.sh"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue