aboutsummaryrefslogtreecommitdiffstats
path: root/chapter8/findutils.sh
blob: 255591c241ad6014c2c001e1f045e2609764f90b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
# shellcheck disable=SC2016

./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