Forked from n8agrin/Fix for distcc distccd macports installer
Created
June 6, 2014 03:51
-
-
Save joshenders/2a8b2ddc35a398293399 to your computer and use it in GitHub Desktop.
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