aboutsummaryrefslogtreecommitdiffstats
path: root/chapter8/findutils.sh
diff options
context:
space:
mode:
Diffstat (limited to 'chapter8/findutils.sh')
-rw-r--r--chapter8/findutils.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/chapter8/findutils.sh b/chapter8/findutils.sh
index 7a693aa..b058eea 100644
--- a/chapter8/findutils.sh
+++ b/chapter8/findutils.sh
@@ -1,3 +1,10 @@
#!/bin/bash
+./configure --prefix=/usr --localstatedir=/var/lib/locate
+make
+
+make -j1 install
+
+mv -v /usr/bin/find /bin
+sed -i 's|find:=${BINDIR}|find:=/bin|' /usr/bin/updatedb