Add 8.10 - Build file

This commit is contained in:
Aditya 2023-01-10 15:18:48 +05:30
parent a6f0776a6b
commit 231028167b
2 changed files with 40 additions and 0 deletions

View 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

View file

@ -654,3 +654,16 @@ then
stop_script "chapter8/8.9-zstd.sh" stop_script "chapter8/8.9-zstd.sh"
fi 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