mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-12-22 15:22:56 +00:00
Add 8.61 - Build gzip
This commit is contained in:
parent
2a878335ef
commit
afe1081189
2 changed files with 38 additions and 0 deletions
26
scripts/chapter8/8.61-gzip.sh
Normal file
26
scripts/chapter8/8.61-gzip.sh
Normal file
|
@ -0,0 +1,26 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /sources
|
||||
tar xf gzip-1.12.tar.xz
|
||||
cd gzip-1.12
|
||||
|
||||
./configure --prefix=/usr
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make -j5
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make check
|
||||
|
||||
make install
|
||||
|
||||
cd /sources
|
||||
rm -rf gzip-1.12
|
|
@ -1270,3 +1270,15 @@ then
|
|||
stop_script "chapter8/8.60-bash.sh"
|
||||
fi
|
||||
|
||||
# Chapter 8.61
|
||||
# ============
|
||||
echo "Building gzip"
|
||||
su -c "bash $SCRIPT/chapte8/8.61-gzip.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapte8/8.61-gzip.sh"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue