aboutsummaryrefslogtreecommitdiffstats
path: root/chapter8/coreutils.sh
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-04-06 14:09:59 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-04-06 14:09:59 -0500
commitaf28b78b8e659f995b39a5dde2ce2cef0da9fbe0 (patch)
treea80d4cfef7713f7aa26137c0da553358af4cd7b2 /chapter8/coreutils.sh
parent783a4c48e04e81783848f0cb0f757f6a836d7f6e (diff)
Add chapter8 script commands.
Diffstat (limited to 'chapter8/coreutils.sh')
-rw-r--r--chapter8/coreutils.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/chapter8/coreutils.sh b/chapter8/coreutils.sh
index 7a693aa..62ceb69 100644
--- a/chapter8/coreutils.sh
+++ b/chapter8/coreutils.sh
@@ -1,3 +1,25 @@
#!/bin/bash
+echo $NINJAJOBS
+patch -Np1 -i ../coreutils-"${VERSION}"-i18n-1.patch
+
+sed -i '/test.lock/s/^/#/' gnulib-tests/gnulib.mk
+
+autoreconf -fiv
+FORCE_UNSAFE_CONFIGURE=1 ./configure \
+ --prefix=/usr \
+ --enable-no-install-program=kill,uptime
+
+make
+
+make -j1 install
+
+mv -v /usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} /bin
+mv -v /usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,rm} /bin
+mv -v /usr/bin/{rmdir,stty,sync,true,uname} /bin
+mv -v /usr/bin/chroot /usr/sbin
+mv -v /usr/share/man/man1/chroot.1 /usr/share/man/man8/chroot.8
+sed -i 's/"1"/"8"/' /usr/share/man/man8/chroot.8
+
+mv -v /usr/bin/{head,nice,sleep,touch} /bin