mirror of
https://github.com/mattwind/alfs.git
synced 2025-07-23 19:36:00 +00:00
28 lines
366 B
Bash
Executable File
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"
|
|
|