Skip to content

Commit bbfebc8

Browse files
committed
Add build phase for copying mvim scripts
1 parent dc708f3 commit bbfebc8

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

src/MacVim/MacVim.xcodeproj/project.pbxproj

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@
6464
1DE9B9500D341AB8008FEDD4 /* MMWindow.m in Sources */ = {isa = PBXBuildFile; fileRef = 1DE9B94E0D341AB8008FEDD4 /* MMWindow.m */; };
6565
1DED78600C6DE43D0079945F /* vimrc in Copy Vim Runtime Files */ = {isa = PBXBuildFile; fileRef = 1DED785F0C6DE43D0079945F /* vimrc */; };
6666
1DFE25A50C527BC4003000F7 /* PSMTabBarControl.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D493DB90C52533B00AB718C /* PSMTabBarControl.framework */; };
67+
52818B031C1C08CE00F59085 /* QLStephen.qlgenerator in Copy QuickLookPlugin */ = {isa = PBXBuildFile; fileRef = 52818AFF1C1C075300F59085 /* QLStephen.qlgenerator */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
68+
528DA66A1426D4F9003380F1 /* macvim-askpass in Copy Scripts */ = {isa = PBXBuildFile; fileRef = 528DA6691426D4EB003380F1 /* macvim-askpass */; };
6769
52A364731C4A5789005757EC /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 52A364721C4A5789005757EC /* Sparkle.framework */; };
6870
52A364761C4A57C1005757EC /* Sparkle.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = 52A364721C4A5789005757EC /* Sparkle.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
6971
52B7ED9B1C4A4D6900AFFF15 /* dsa_pub.pem in Resources */ = {isa = PBXBuildFile; fileRef = 52B7ED9A1C4A4D6900AFFF15 /* dsa_pub.pem */; };
70-
52818B031C1C08CE00F59085 /* QLStephen.qlgenerator in Copy QuickLookPlugin */ = {isa = PBXBuildFile; fileRef = 52818AFF1C1C075300F59085 /* QLStephen.qlgenerator */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
71-
528DA66A1426D4F9003380F1 /* macvim-askpass in Copy Scripts */ = {isa = PBXBuildFile; fileRef = 528DA6691426D4EB003380F1 /* macvim-askpass */; };
7272
8D11072A0486CEB800E47090 /* MainMenu.nib in Resources */ = {isa = PBXBuildFile; fileRef = 29B97318FDCFA39411CA2CEA /* MainMenu.nib */; };
7373
8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */; };
7474
8D11072D0486CEB800E47090 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; settings = {ATTRIBUTES = (); }; };
@@ -467,14 +467,6 @@
467467
name = Products;
468468
sourceTree = "<group>";
469469
};
470-
528DA6681426D477003380F1 /* Scripts */ = {
471-
isa = PBXGroup;
472-
children = (
473-
528DA6691426D4EB003380F1 /* macvim-askpass */,
474-
);
475-
name = Scripts;
476-
sourceTree = "<group>";
477-
};
478470
/* End PBXGroup section */
479471

480472
/* Begin PBXNativeTarget section */
@@ -491,6 +483,7 @@
491483
1DE608B80C58807F0055263D /* Copy Vim Runtime Files */,
492484
1D1C31F00EFFBFD6003FE9A5 /* Make Document Icons */,
493485
528DA6671426D456003380F1 /* Copy Scripts */,
486+
52283AB71EBA200C00A6F6B9 /* Copy mvim scripts */,
494487
);
495488
buildRules = (
496489
);
@@ -620,6 +613,21 @@
620613
shellScript = "# Clear deployment target, else the python script always thinks we're building on Tiger\nunset MACOSX_DEPLOYMENT_TARGET\n\n# Generate the icons (redirect stderr to ignore warnings)\ncd \"$PROJECT_DIR\"/icons/\nmake OUTDIR=\"$TARGET_BUILD_DIR\"/$UNLOCALIZED_RESOURCES_FOLDER_PATH 2> /dev/null\n";
621614
showEnvVarsInLog = 0;
622615
};
616+
52283AB71EBA200C00A6F6B9 /* Copy mvim scripts */ = {
617+
isa = PBXShellScriptBuildPhase;
618+
buildActionMask = 2147483647;
619+
files = (
620+
);
621+
inputPaths = (
622+
);
623+
name = "Copy mvim scripts";
624+
outputPaths = (
625+
);
626+
runOnlyForDeploymentPostprocessing = 0;
627+
shellPath = /bin/sh;
628+
shellScript = "BINPATH=$BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/bin\nmkdir -p $BINPATH\ncp -a $SRCROOT/mvim $BINPATH/mvim\nchmod 755 $BINPATH/mvim\n(cd $BINPATH; for f in vim vimdiff view gvim gvimdiff gview mvimdiff mview; do ln -s mvim $f; done)";
629+
showEnvVarsInLog = 0;
630+
};
623631
/* End PBXShellScriptBuildPhase section */
624632

625633
/* Begin PBXSourcesBuildPhase section */

0 commit comments

Comments
 (0)