Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save n8agrin/129289 to your computer and use it in GitHub Desktop.
Save n8agrin/129289 to your computer and use it in GitHub Desktop.
Fix for distccd macports installer
#!/bin/sh
#
# Originally found here: http://jenders.vox.com/library/post/macports-workaround-for-installing-distcc-31-on-an-intel-mac.html
#
makefile=/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/distcc/work/distcc-3.1/Makefile
if test -e $makefile; then # user has a half completed installation
break
else # user has not previously attempted installation
port configure distcc
fi
# if the makefile still does not exist there's a problem
if ! test -e $makefile; then echo "The makefile does not exist. Are you sure distcc isn't already installed?" && exit 1; fi
# patch makefile and install
echo "\e[1m---> Patching Makefile\e[0m"
sed -i.bak -e 's/\-MD\ \-W/\-W/g' $makefile && port install distcc
@joshenders
Copy link

Thanks for backing this up for me :) I lost this years ago!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment