diff options
author | Judd Vinet <judd@archlinux.org> | 2005-12-14 02:40:01 +0000 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2005-12-14 02:40:01 +0000 |
commit | 50be438d4a33e08dd310206425e3e05788c66330 (patch) | |
tree | 0f9d3b861797382af717ad3113dad907afe113bc /scripts | |
parent | 1969a8beb93eaecb9e3698f1f0da65295878d55b (diff) | |
download | pacman-50be438d4a33e08dd310206425e3e05788c66330.tar.xz |
added frugalware patch for DistCC support
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/makepkg | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/makepkg b/scripts/makepkg index 02e7d895..c1df97eb 100755 --- a/scripts/makepkg +++ b/scripts/makepkg @@ -591,6 +591,15 @@ if [ "$NOBUILD" = "1" ]; then exit 0 fi +# use distcc if requested +if [ "$DISTCC" = "y" ]; then + [ -d /usr/lib/distcc/bin ] && export PATH=/usr/lib/distcc/bin:$PATH + if [ "$INCHROOT" = "1" ]; then + [ -d /var/tmp/fst/.distcc ] || mkdir /var/tmp/fst/.distcc + export DISTCC_DIR=/var/tmp/fst/.distcc + fi +fi + # use ccache if it's available if [ "$NOCCACHE" = "0" ]; then [ -d /usr/lib/ccache/bin ] && export PATH=/usr/lib/ccache/bin:$PATH |