lfs-scripts/scripts/chapter6/6.13-patch.sh

28 lines
318 B
Bash
Raw Normal View History

2023-01-09 09:32:33 +00:00
#!/bin/bash
cd $LFS/sources
tar xf patch-2.7.6.tar.xz
cd patch-2.7.6
./configure --prefix=/usr \
--host=$LFS_TGT \
--build=$(build-aux/config.guess)
if [ $? -ne 0 ]
then
exit 1
fi
make -j5
if [ $? -ne 0 ]
then
exit 1
fi
make DESTIR=$LFS install
cd $LFS/sources
rm -rf patch-2.7.6