aboutsummaryrefslogtreecommitdiffstats
path: root/chapter8/attr.sh
blob: fc68246f501e89ea0f576b5fcdb9cf0dc7d30537 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
set -e

./configure --prefix=/usr \
            --bindir=/bin \
            --disable-static \
            --sysconfdir=/etc \
            --docdir=/usr/share/doc/attr-"${VERSION}" &&

make &&
make -j1 install &&

mv -v /usr/lib/libattr.so.* /lib &&
ln -sfv ../../lib/"$(readlink /usr/lib/libattr.so)" /usr/lib/libattr.so