Commits

Tuukka Norri committed 653b283

Added a branch for Mac OS X 10.5 in the help indexing script

  • Participants
  • Parent commits ba346b4

Comments (0)

Files changed (2)

File BaseTenAssistant/BaseTenAssistant.xcodeproj/project.pbxproj

 			);
 			runOnlyForDeploymentPostprocessing = 0;
 			shellPath = /bin/sh;
-			shellScript = "pushd \"$BUILT_PRODUCTS_DIR/BaseTen Assistant.app/Contents/Resources/English.lproj/BaseTen Assistant Help\"\nhiutil -Cf \"BaseTen Assistant Help.helpindex\" -a -g .\npopd";
+			shellScript = "source \"$SRCROOT/../Tools/index-assistant-help.sh\"";
 			showEnvVarsInLog = 0;
 		};
 		53F83767107A85F20017FB36 /* Copy RegexKit.framework */ = {

File Tools/index-assistant-help.sh

+pushd "$BUILT_PRODUCTS_DIR/BaseTen Assistant.app/Contents/Resources/English.lproj/BaseTen Assistant Help" > /dev/null
+
+which hiutil > /dev/null
+if [ 0 -eq $? ]
+then
+    hiutil -Cf "BaseTen Assistant Help.helpindex" -a -g .
+else
+    "$SYSTEM_DEVELOPER_UTILITIES_DIR/Help Indexer.app/Contents/MacOS/Help Indexer" .
+fi
+
+popd > /dev/null