lfs-scripts/scripts/chapter6/6.13-patch.sh
2023-01-09 15:02:33 +05:30

27 lines
318 B
Bash

#!/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