Files
alfs/toolchain/patch.sh
2021-01-10 06:38:21 -08:00

28 lines
366 B
Bash
Executable File

#!/bin/bash
if [ "$(whoami)" != "lfs" ]; then
echo "Script must be run as user: lfs"
exit 255
fi
cd $LFS/sources
tar xvf patch-2.7.6.tar.xz
cd patch-2.7.6
./configure --prefix=/usr \
--host=$LFS_TGT \
--build=$(build-aux/config.guess)
make
make DESTDIR=$LFS install
cd $LFS/sources
rm -rf patch-2.7.6
echo "Done"