Permalink
Browse files

Add a shell script build phase to automatically copy the built produc…

…t to the Xcode plug-ins directory after a successful build.
  • Loading branch information...
1 parent eb28415 commit 0c0fbc6ef570653ecc40c0bcca3926c70c57b9b8 @ciaran committed Jul 11, 2009
Showing with 18 additions and 1 deletion.
  1. +1 −1 README.mdown
  2. +17 −0 XcodeBracketMatcher.xcodeproj/project.pbxproj
View
@@ -6,7 +6,7 @@ Watch [the screencast](http://ciaranwal.sh/files/xcode-bracket-matcher.mov) to s
# Installation
1. Open the project and build the plug-in (or download and extract it from the [Downloads page](http://github.com/ciaran/xcode-bracket-matcher/downloads)).
-2. Move the product (`XcodeBracketMatcher.pbplugin`) to `~/Library/Application Support/Developer/Shared/Xcode/Plug-ins` (create the directory if necessary).
+2. After a successful build the plug-in should automatically be installed; to install it manually move the product (`XcodeBracketMatcher.pbplugin`) to `~/Library/Application Support/Developer/Shared/Xcode/Plug-ins` (create the directory if necessary).
3. Restart Xcode.
# Usage
@@ -121,6 +121,7 @@
8D5B49AF048680CD000E48DA /* Resources */,
8D5B49B1048680CD000E48DA /* Sources */,
8D5B49B3048680CD000E48DA /* Frameworks */,
+ 9123DF8B1008FD98002FE022 /* ShellScript */,
);
buildRules = (
);
@@ -162,6 +163,22 @@
};
/* End PBXResourcesBuildPhase section */
+/* Begin PBXShellScriptBuildPhase section */
+ 9123DF8B1008FD98002FE022 /* ShellScript */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "INSTALL_DIR=\"$HOME/Library/Application Support/Developer/Shared/Xcode/Plug-ins/\"\n[[ -d \"$INSTALL_DIR/$FULL_PRODUCT_NAME\" ]] && rm -rf \"$INSTALL_DIR/$FULL_PRODUCT_NAME\"\n[[ ! -d \"$INSTALL_DIR\" ]] && mkdir \"$INSTALL_DIR\"\ncp -R \"$TARGET_BUILD_DIR/$FULL_PRODUCT_NAME\" \"$INSTALL_DIR\"\n";
+ };
+/* End PBXShellScriptBuildPhase section */
+
/* Begin PBXSourcesBuildPhase section */
8D5B49B1048680CD000E48DA /* Sources */ = {
isa = PBXSourcesBuildPhase;

0 comments on commit 0c0fbc6

Please sign in to comment.