Add 8.66 - Build patch

This commit is contained in:
Aditya 2023-01-12 19:27:30 +05:30
parent 8cac456178
commit f793a3b01d
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,26 @@
#!/bin/bash
cd /sources
tar xf patch-2.7.6.tar.xz
cd patch-2.7.6
./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 patch-2.7.6

View file

@ -1330,3 +1330,15 @@ then
stop_script "chapter8/8.65-make.sh"
fi
# Chapter 8.66
# ============
echo "Building patch"
su -c "bash $SCRIPT/chapter8/8.66-patch.sh"
# Exit on error
check_exit_code
if [ $exit_status -ne 0 ]
then
stop_script "chapter8/8.66-patch.sh"
fi