mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-12-22 15:22:56 +00:00
Add 8.56 - Build diffutils
This commit is contained in:
parent
691d94a482
commit
7e52f4ee9f
3 changed files with 76 additions and 0 deletions
26
scripts/chapter8/8.55-check.sh
Normal file
26
scripts/chapter8/8.55-check.sh
Normal file
|
@ -0,0 +1,26 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /sources
|
||||
tar xf check-0.15.2.tar.gz
|
||||
cd check-0.15.2
|
||||
|
||||
./configure --prefix=/usr --disable-static
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make -j5
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make check
|
||||
|
||||
make docdir=/usr/share/doc/check-0.15.2 install
|
||||
|
||||
cd /sources
|
||||
rm -rf check-0.15.2
|
26
scripts/chapter8/8.56-diffutils.sh
Normal file
26
scripts/chapter8/8.56-diffutils.sh
Normal file
|
@ -0,0 +1,26 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /sources
|
||||
tar xf diffutils-3.8.tar.xz
|
||||
cd diffutils-3.8
|
||||
|
||||
./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 diffutils-3.8
|
|
@ -1198,3 +1198,27 @@ then
|
|||
stop_script "bash $SCRIPT/chapter8/8.54-coreutils.sh"
|
||||
fi
|
||||
|
||||
# Chapter 8.55
|
||||
# ============
|
||||
echo "Building check"
|
||||
su -c "bash $SCRIPT/chapte8/8.55-check.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter8/8.55-check.sh"
|
||||
fi
|
||||
|
||||
# Chapter 8.56
|
||||
# ============
|
||||
echo "Building diffutils"
|
||||
su -c "bash $SCRIPT/chapter8/8.56-diffutils.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter8/8.56-diffutils.sh"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue