comparison Xcode/SDL/SDL.xcodeproj/project.pbxproj @ 5091:79bd1e289005

Fixed bug #1102 Check /usr/local/bin for hg before sourcing the user's bash settings
author Sam Lantinga <slouken@libsdl.org>
date Mon, 24 Jan 2011 17:47:18 -0800
parents b4b0e9f1669c
children fb424691cfc7
comparison
equal deleted inserted replaced
5090:455bc74f7034 5091:79bd1e289005
2290 outputPaths = ( 2290 outputPaths = (
2291 "$(SRCROOT)/../../include/SDL_revision.h", 2291 "$(SRCROOT)/../../include/SDL_revision.h",
2292 ); 2292 );
2293 runOnlyForDeploymentPostprocessing = 0; 2293 runOnlyForDeploymentPostprocessing = 0;
2294 shellPath = /bin/sh; 2294 shellPath = /bin/sh;
2295 shellScript = "# The underlying scripts require calling hg to get revision info.\n# Since hg may not be in the standard Xcode path, I am sourcing .bashrc\n# But I don't know what to do if people are using other shells.\nif test -f ~/.bash_profile; then source ~/.bash_profile; fi\nif test -f ~/.bashrc; then source ~/.bashrc; fi\nsh ../../build-scripts/updaterev.sh\n"; 2295 shellScript = "# The official HG installer puts the binary in /usr/local/bin, so add that\n# to Xcode's path and see if the hg executable is found. Otherwise, source\n# the user's bash settings file as a last resort.\nPATH=$PATH:/usr/local/bin\nif ! which -s hg ; then\n if test -f ~/.bash_profile; then source ~/.bash_profile; fi\nfi\nsh ../../build-scripts/updaterev.sh\n";
2296 }; 2296 };
2297 0083103E1072EA5700A531F1 /* ShellScript */ = { 2297 0083103E1072EA5700A531F1 /* ShellScript */ = {
2298 isa = PBXShellScriptBuildPhase; 2298 isa = PBXShellScriptBuildPhase;
2299 buildActionMask = 2147483647; 2299 buildActionMask = 2147483647;
2300 files = ( 2300 files = (