--- a/mac/Hugin.xcodeproj/project.pbxproj
+++ b/mac/Hugin.xcodeproj/project.pbxproj
@@ -9702,7 +9702,7 @@
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 			shellPath = /bin/sh;
-			shellScript = "# First export a path. On some systems the environment is not correctly set/used\nexport PATH=/opt/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/sw/bin\n\nif [ -d \"../.hg\" ]\nthen\n rm -rf ../mac/hgsummary.txt ../mac/hgsummary2.txt\n hg summary | grep parent > ../mac/hgsummary.txt\n# sed -e 's/parent: //g' \\\n# -e 's/....://g' \\\n# -e 's/ tip//g' ../mac/hgsummary.txt > ../mac/hgsummary2.txt\n# sed -e 's/parent: //g' \\\n# -e 's/:.*tip//g' ../mac/hgsummary.txt > ../mac/hgsummary2.txt\n# sed -e 's/parent: //g' \\\n# -e 's/.*://g' \\\n# -e 's/ tip//g' ../mac/hgsummary.txt > ../mac/hgsummary2.txt\n sed -e 's/parent: //g' \\\n -e 's/ tip//g' ../mac/hgsummary.txt > ../mac/hgsummary2.txt\n\n\n\n# We found a correct hg version, now we remove hugin_version.h\n rm -rf ../src/hugin_version.h\n rm -rf ../build/src/hugin_version.h\n\n echo 'HUGIN_WC_REVISION = '$(cat ../mac/hgsummary2.txt) > \"../mac/HG-rev.xcconfig\"\n echo 'HUGIN_PRERELEASE_VERSION_TAG = .'$(cat ../mac/hgsummary2.txt) >> \"../mac/HG-rev.xcconfig\"\n echo 'HUGIN_DEVELOPMENT_VERSION = 1' >> \"../mac/HG-rev.xcconfig\"\nelse\n touch ../mac/HG-rev.xcconfig\n echo 'Need to set HG revision ${HUGIN_WC_REVISION} manually in Version.xcconfig.' >&2\n exit 1\nfi\n\n#rm -rf ../mac/hgsummary.txt ../mac/hgsummary2.txt\n";
+			shellScript = "# First export a path. On some systems the environment is not correctly set/used\nexport PATH=/opt/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/sw/bin\n\nif [ -d \"../.hg\" ]\nthen\n rm -rf ../mac/hgsummary.txt ../mac/hgsummary2.txt\n hg summary | grep parent > ../mac/hgsummary.txt\n# sed -e 's/parent: //g' \\\n# -e 's/....://g' \\\n# -e 's/ tip//g' ../mac/hgsummary.txt > ../mac/hgsummary2.txt\n# sed -e 's/parent: //g' \\\n# -e 's/:.*tip//g' ../mac/hgsummary.txt > ../mac/hgsummary2.txt\n# sed -e 's/parent: //g' \\\n# -e 's/.*://g' \\\n# -e 's/ tip//g' ../mac/hgsummary.txt > ../mac/hgsummary2.txt\n sed -e 's/parent: //g' \\\n -e 's/ tip//g' ../mac/hgsummary.txt > ../mac/hgsummary2.txt\n\n\n\n# We found a correct hg version, now we remove hugin_version.h\n rm -rf ../src/hugin_version.h\n rm -rf ../build/src/hugin_version.h\n rm -rf ../mac/HG-rev.xcconfig\n\n echo 'HUGIN_WC_REVISION = '$(cat ../mac/hgsummary2.txt) > \"../mac/HG-rev.xcconfig\"\n echo 'HUGIN_PRERELEASE_VERSION_TAG = .'$(cat ../mac/hgsummary2.txt) >> \"../mac/HG-rev.xcconfig\"\n echo 'HUGIN_DEVELOPMENT_VERSION = 1' >> \"../mac/HG-rev.xcconfig\"\nelse\n touch ../mac/HG-rev.xcconfig\n echo 'Need to set HG revision ${HUGIN_WC_REVISION} manually in Version.xcconfig.' >&2\n exit 1\nfi\n\n#rm -rf ../mac/hgsummary.txt ../mac/hgsummary2.txt\n";
 		};
 		57FF7DBA0E6919F400553709 /* ShellScript */ = {
 			isa = PBXShellScriptBuildPhase;