mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2025-02-05 17:00:04 +00:00
Add 8.8 - Build xz
This commit is contained in:
parent
5a95107da4
commit
b49ad61d25
2 changed files with 42 additions and 0 deletions
29
scripts/chapter8/8.8-xz.sh
Normal file
29
scripts/chapter8/8.8-xz.sh
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cd /sources
|
||||||
|
tar xf xz-5.2.6.tar.xz
|
||||||
|
cd xz-5.2.6
|
||||||
|
|
||||||
|
./configure --prefix=/usr \
|
||||||
|
--disable-static \
|
||||||
|
--docdir=/usr/share/doc/xz-5.2.6
|
||||||
|
|
||||||
|
if [ $? -ne 0 ]
|
||||||
|
then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
make -j5
|
||||||
|
|
||||||
|
if [ $? -ne 0 ]
|
||||||
|
then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
make check
|
||||||
|
|
||||||
|
make install
|
||||||
|
|
||||||
|
cd /sources
|
||||||
|
rm -rf xz-5.2.6
|
||||||
|
|
|
@ -630,3 +630,16 @@ then
|
||||||
stop_script "chapter8/8.7-bzip.sh"
|
stop_script "chapter8/8.7-bzip.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Chapter 8.8
|
||||||
|
# ===========
|
||||||
|
echo "Building xz"
|
||||||
|
su -c "bash $SCRIPT/chapter8/8.8-xz.sh"
|
||||||
|
|
||||||
|
# Exit on error
|
||||||
|
check_exit_code
|
||||||
|
if [ $exit_status -ne 0 ]
|
||||||
|
then
|
||||||
|
stop_script "chapter8/8.8-xz.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue