aboutsummaryrefslogtreecommitdiffstats
path: root/chapter8/coreutils.sh
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-04-19 22:51:55 +0000
committerWilliam Harrington <kb0iic@berzerkula.org>2021-04-19 22:51:55 +0000
commit2e2f8f359c865382cbc138e4572ab9a63d736775 (patch)
treef76a820e8f39d46926ad0e6a5dc8f478ae429615 /chapter8/coreutils.sh
parente4633200ea4609597950f991ce43f1a4d9f3cfbb (diff)
parent6b11f48c20f4411008c28ccb86463a98c0f06fef (diff)
Merge branch 'chapter10'
Diffstat (limited to 'chapter8/coreutils.sh')
-rw-r--r--chapter8/coreutils.sh25
1 files changed, 12 insertions, 13 deletions
diff --git a/chapter8/coreutils.sh b/chapter8/coreutils.sh
index 1bbc0f3..1ee5efa 100644
--- a/chapter8/coreutils.sh
+++ b/chapter8/coreutils.sh
@@ -1,24 +1,23 @@
#!/bin/bash
set -e
-patch -Np1 -i ../coreutils-"${VERSION}"-i18n-1.patch
+patch -Np1 -i ../coreutils-"${VERSION}"-i18n-1.patch &&
-sed -i '/test.lock/s/^/#/' gnulib-tests/gnulib.mk
+sed -i '/test.lock/s/^/#/' gnulib-tests/gnulib.mk &&
-autoreconf -fiv
+autoreconf -fiv &&
FORCE_UNSAFE_CONFIGURE=1 ./configure \
--prefix=/usr \
- --enable-no-install-program=kill,uptime
+ --enable-no-install-program=kill,uptime &&
-make
+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
+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