Created
June 13, 2009 15:36
-
-
Save n8agrin/129289 to your computer and use it in GitHub Desktop.
Fix for distccd macports installer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for backing this up for me :) I lost this years ago!