repo/extra/ccache/build

22 lines
475 B
Plaintext
Raw Normal View History

2019-08-20 11:20:16 +00: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 21:05:16 +00:00
host=$(cc -dumpmachine)
2019-08-20 11:20:16 +00:00
2020-04-29 06:52:46 +00:00
for link in cc gcc g++ cpp c++ \
2020-03-08 21:05:16 +00:00
"$host-cc" "$host-gcc" "$host-g++" "$host-cpp" "$host-c++"; do
2019-08-20 11:20:16 +00:00
ln -sf /usr/bin/ccache "$1/usr/lib/ccache/bin/$link"
done