repo/extra/ccache/build

22 lines
475 B
Plaintext
Raw Normal View History

2019-08-20 05:20:16 -06:00
#!/bin/sh -e
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var
make
install -Dm 755 ccache "$1/usr/bin/ccache"
install -Dm 644 doc/ccache.1 "$1/usr/share/man/man1/ccache.1"
mkdir -p "$1/usr/lib/ccache/bin"
2020-03-08 15:05:16 -06:00
host=$(cc -dumpmachine)
2019-08-20 05:20:16 -06:00
2020-04-29 00:52:46 -06:00
for link in cc gcc g++ cpp c++ \
2020-03-08 15:05:16 -06:00
"$host-cc" "$host-gcc" "$host-g++" "$host-cpp" "$host-c++"; do
2019-08-20 05:20:16 -06:00
ln -sf /usr/bin/ccache "$1/usr/lib/ccache/bin/$link"
done