mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Add 8.10 - Build file
This commit is contained in:
parent
a6f0776a6b
commit
231028167b
2 changed files with 40 additions and 0 deletions
27
scripts/chapter8/8.10-file.sh
Normal file
27
scripts/chapter8/8.10-file.sh
Normal file
|
@ -0,0 +1,27 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /sources
|
||||
tar xf file-5.42.tar.gz
|
||||
cd file-5.42
|
||||
|
||||
./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 file-5.42
|
||||
|
|
@ -654,3 +654,16 @@ then
|
|||
stop_script "chapter8/8.9-zstd.sh"
|
||||
fi
|
||||
|
||||
# Chapter 8.10
|
||||
# ============
|
||||
echo "Building file"
|
||||
su -c "bash $SCRIPT/chapter8/8.10-file.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter8/8.10-file.sh"
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue