mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-14 00:59:43 +00:00
34 lines
694 B
Bash
34 lines
694 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
cd $LFS/sources
|
||
|
tar xf coreutils-9.1.tar.xz
|
||
|
cd coreutils-9.1
|
||
|
|
||
|
./configure --prefix=/usr \
|
||
|
--host=$LFS_TGT \
|
||
|
--build=$(build-aux/config.guess) \
|
||
|
--enable-install-program=hostname \
|
||
|
--enable-no-install-program=kill,uptime
|
||
|
|
||
|
if [ $? -ne 0 ]
|
||
|
then
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
make -j5
|
||
|
|
||
|
if [ $? -ne 0 ]
|
||
|
then
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
make DESTDIR=$LFS install
|
||
|
|
||
|
mv -v $LFS/usr/bin/chroot $LFS/usr/sbin
|
||
|
mkdir -pv $LFS/usr/share/man/man8
|
||
|
mv -v $LFS/usr/share/man/man1/chroot.1 $LFS/usr/share/man/man8/chroot.8
|
||
|
sed -i 's/"1"/"8"/' $LFS/usr/share/man/man8/chroot.8
|
||
|
|
||
|
cd $LFS/sources
|
||
|
rm -rf coreutils-9.1
|