fix check_version.sh

This commit is contained in:
Jack Flintermann 2015-01-07 18:41:54 -05:00 committed by James Reggio
parent 3d7ede4fbe
commit 2e6a62bae4
7 changed files with 51 additions and 51 deletions

View File

@ -62,10 +62,10 @@
0470A29B19A5D5DB00B66DB7 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
0470A29D19A5D5DB00B66DB7 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
0470A29F19A5D5DB00B66DB7 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
0470A2A319A5D5DB00B66DB7 /* StripeExample-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "StripeExample-Info.plist"; sourceTree = "<group>"; };
0470A2A319A5D5DB00B66DB7 /* Stripe iOS Example-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Stripe iOS Example-Info.plist"; sourceTree = "<group>"; };
0470A2A519A5D5DB00B66DB7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
0470A2A719A5D5DB00B66DB7 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
0470A2A919A5D5DB00B66DB7 /* StripeExample-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "StripeExample-Prefix.pch"; sourceTree = "<group>"; };
0470A2A919A5D5DB00B66DB7 /* Stripe iOS Example-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Stripe iOS Example-Prefix.pch"; sourceTree = "<group>"; };
0470A2AA19A5D5DB00B66DB7 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
0470A2AB19A5D5DB00B66DB7 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
0470A2AE19A5D5DB00B66DB7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
@ -228,10 +228,10 @@
0470A2A219A5D5DB00B66DB7 /* Supporting Files */ = {
isa = PBXGroup;
children = (
0470A2A319A5D5DB00B66DB7 /* StripeExample-Info.plist */,
0470A2A319A5D5DB00B66DB7 /* Stripe iOS Example-Info.plist */,
0470A2A419A5D5DB00B66DB7 /* InfoPlist.strings */,
0470A2A719A5D5DB00B66DB7 /* main.m */,
0470A2A919A5D5DB00B66DB7 /* StripeExample-Prefix.pch */,
0470A2A919A5D5DB00B66DB7 /* Stripe iOS Example-Prefix.pch */,
);
name = "Supporting Files";
sourceTree = "<group>";
@ -345,9 +345,9 @@
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
0470A29719A5D5DB00B66DB7 /* StripeExample */ = {
0470A29719A5D5DB00B66DB7 /* Stripe iOS Example */ = {
isa = PBXNativeTarget;
buildConfigurationList = 0470A2CA19A5D5DB00B66DB7 /* Build configuration list for PBXNativeTarget "StripeExample" */;
buildConfigurationList = 0470A2CA19A5D5DB00B66DB7 /* Build configuration list for PBXNativeTarget "Stripe iOS Example" */;
buildPhases = (
0470A29419A5D5DB00B66DB7 /* Sources */,
0470A29519A5D5DB00B66DB7 /* Frameworks */,
@ -357,7 +357,7 @@
);
dependencies = (
);
name = StripeExample;
name = "Stripe iOS Example";
productName = StripeExample;
productReference = 0470A29819A5D5DB00B66DB7 /* StripeExample.app */;
productType = "com.apple.product-type.application";
@ -387,7 +387,7 @@
};
};
};
buildConfigurationList = 0470A29319A5D5DB00B66DB7 /* Build configuration list for PBXProject "StripeExample" */;
buildConfigurationList = 0470A29319A5D5DB00B66DB7 /* Build configuration list for PBXProject "Stripe iOS Example" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
@ -400,7 +400,7 @@
projectDirPath = "";
projectRoot = "";
targets = (
0470A29719A5D5DB00B66DB7 /* StripeExample */,
0470A29719A5D5DB00B66DB7 /* Stripe iOS Example */,
);
};
/* End PBXProject section */
@ -579,7 +579,7 @@
);
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "StripeExample/StripeExample-Prefix.pch";
GCC_PREFIX_HEADER = "StripeExample/Stripe iOS Example-Prefix.pch";
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
@ -590,8 +590,8 @@
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
"$(SRCROOT)/../Stripe/**",
);
INFOPLIST_FILE = "StripeExample/StripeExample-Info.plist";
PRODUCT_NAME = "$(TARGET_NAME)";
INFOPLIST_FILE = "StripeExample/Stripe iOS Example-Info.plist";
PRODUCT_NAME = "Stripe iOS Example";
PROVISIONING_PROFILE = "";
WRAPPER_EXTENSION = app;
};
@ -611,15 +611,15 @@
);
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "StripeExample/StripeExample-Prefix.pch";
GCC_PREFIX_HEADER = "StripeExample/Stripe iOS Example-Prefix.pch";
GCC_PREPROCESSOR_DEFINITIONS = STRIPE_ENABLE_APPLEPAY;
HEADER_SEARCH_PATHS = (
"$(inherited)",
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
"$(SRCROOT)/../Stripe/**",
);
INFOPLIST_FILE = "StripeExample/StripeExample-Info.plist";
PRODUCT_NAME = "$(TARGET_NAME)";
INFOPLIST_FILE = "StripeExample/Stripe iOS Example-Info.plist";
PRODUCT_NAME = "Stripe iOS Example";
PROVISIONING_PROFILE = "";
WRAPPER_EXTENSION = app;
};
@ -628,7 +628,7 @@
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
0470A29319A5D5DB00B66DB7 /* Build configuration list for PBXProject "StripeExample" */ = {
0470A29319A5D5DB00B66DB7 /* Build configuration list for PBXProject "Stripe iOS Example" */ = {
isa = XCConfigurationList;
buildConfigurations = (
0470A2C819A5D5DB00B66DB7 /* Debug */,
@ -637,7 +637,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
0470A2CA19A5D5DB00B66DB7 /* Build configuration list for PBXNativeTarget "StripeExample" */ = {
0470A2CA19A5D5DB00B66DB7 /* Build configuration list for PBXNativeTarget "Stripe iOS Example" */ = {
isa = XCConfigurationList;
buildConfigurations = (
0470A2CB19A5D5DB00B66DB7 /* Debug */,

View File

@ -15,11 +15,11 @@
<customObject id="YLy-65-1bz" customClass="NSFontManager"/>
<menu title="Main Menu" systemMenu="main" id="AYu-sK-qS6">
<items>
<menuItem title="OSXExample" id="1Xt-HY-uBw">
<menuItem title="Stripe OSX Example" id="1Xt-HY-uBw">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="OSXExample" systemMenu="apple" id="uQy-DD-JDr">
<menu key="submenu" title="Stripe OSX Example" systemMenu="apple" id="uQy-DD-JDr">
<items>
<menuItem title="About OSXExample" id="5kV-Vb-QxS">
<menuItem title="About Stripe OSX Example" id="5kV-Vb-QxS">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="orderFrontStandardAboutPanel:" target="-1" id="Exp-CZ-Vem"/>
@ -33,7 +33,7 @@
<menu key="submenu" title="Services" systemMenu="services" id="hz9-B4-Xy5"/>
</menuItem>
<menuItem isSeparatorItem="YES" id="4je-JR-u6R"/>
<menuItem title="Hide OSXExample" keyEquivalent="h" id="Olw-nP-bQN">
<menuItem title="Hide Stripe OSX Example" keyEquivalent="h" id="Olw-nP-bQN">
<connections>
<action selector="hide:" target="-1" id="PnN-Uc-m68"/>
</connections>
@ -51,7 +51,7 @@
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="kCx-OE-vgT"/>
<menuItem title="Quit OSXExample" keyEquivalent="q" id="4sb-4s-VLi">
<menuItem title="Quit Stripe OSX Example" keyEquivalent="q" id="4sb-4s-VLi">
<connections>
<action selector="terminate:" target="-1" id="Te7-pn-YzF"/>
</connections>
@ -652,7 +652,7 @@
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Help" systemMenu="help" id="F2S-fz-NVQ">
<items>
<menuItem title="OSXExample Help" keyEquivalent="?" id="FKE-Sm-Kum">
<menuItem title="Stripe OSX Example Help" keyEquivalent="?" id="FKE-Sm-Kum">
<connections>
<action selector="showHelp:" target="-1" id="y7X-2Q-9no"/>
</connections>

View File

@ -77,14 +77,14 @@
04C227051A5DF80E009251A5 /* Stripe.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Stripe.m; sourceTree = "<group>"; };
04C227061A5DF80E009251A5 /* StripeError.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = StripeError.h; path = PublicHeaders/StripeError.h; sourceTree = "<group>"; };
04C227071A5DF80E009251A5 /* StripeError.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = StripeError.m; sourceTree = "<group>"; };
04FCF6441A41F76D00DBF696 /* OSXExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = OSXExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
04FCF6441A41F76D00DBF696 /* Stripe OSX Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Stripe OSX Example.app"; sourceTree = BUILT_PRODUCTS_DIR; };
04FCF6481A41F76D00DBF696 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
04FCF6491A41F76D00DBF696 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
04FCF64A1A41F76D00DBF696 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
04FCF64C1A41F76D00DBF696 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
04FCF64E1A41F76D00DBF696 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
04FCF6511A41F76D00DBF696 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = "<group>"; };
04FCF6571A41F76D00DBF696 /* OSXExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = OSXExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
04FCF6571A41F76D00DBF696 /* Stripe OSX ExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Stripe OSX ExampleTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
04FCF65C1A41F76D00DBF696 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
04FCF65D1A41F76D00DBF696 /* OSXExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = OSXExampleTests.m; sourceTree = "<group>"; };
04FCF6701A41FB7700DBF696 /* ExampleWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ExampleWindowController.h; sourceTree = "<group>"; };
@ -180,8 +180,8 @@
04FCF6451A41F76D00DBF696 /* Products */ = {
isa = PBXGroup;
children = (
04FCF6441A41F76D00DBF696 /* OSXExample.app */,
04FCF6571A41F76D00DBF696 /* OSXExampleTests.xctest */,
04FCF6441A41F76D00DBF696 /* Stripe OSX Example.app */,
04FCF6571A41F76D00DBF696 /* Stripe OSX ExampleTests.xctest */,
);
name = Products;
sourceTree = "<group>";
@ -240,9 +240,9 @@
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
04FCF6431A41F76D00DBF696 /* OSXExample */ = {
04FCF6431A41F76D00DBF696 /* Stripe OSX Example */ = {
isa = PBXNativeTarget;
buildConfigurationList = 04FCF6611A41F76D00DBF696 /* Build configuration list for PBXNativeTarget "OSXExample" */;
buildConfigurationList = 04FCF6611A41F76D00DBF696 /* Build configuration list for PBXNativeTarget "Stripe OSX Example" */;
buildPhases = (
04FCF6401A41F76D00DBF696 /* Sources */,
04FCF6411A41F76D00DBF696 /* Frameworks */,
@ -252,14 +252,14 @@
);
dependencies = (
);
name = OSXExample;
name = "Stripe OSX Example";
productName = OSXExample;
productReference = 04FCF6441A41F76D00DBF696 /* OSXExample.app */;
productReference = 04FCF6441A41F76D00DBF696 /* Stripe OSX Example.app */;
productType = "com.apple.product-type.application";
};
04FCF6561A41F76D00DBF696 /* OSXExampleTests */ = {
04FCF6561A41F76D00DBF696 /* Stripe OSX ExampleTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = 04FCF6641A41F76D00DBF696 /* Build configuration list for PBXNativeTarget "OSXExampleTests" */;
buildConfigurationList = 04FCF6641A41F76D00DBF696 /* Build configuration list for PBXNativeTarget "Stripe OSX ExampleTests" */;
buildPhases = (
04FCF6531A41F76D00DBF696 /* Sources */,
04FCF6541A41F76D00DBF696 /* Frameworks */,
@ -270,9 +270,9 @@
dependencies = (
04FCF6591A41F76D00DBF696 /* PBXTargetDependency */,
);
name = OSXExampleTests;
name = "Stripe OSX ExampleTests";
productName = OSXExampleTests;
productReference = 04FCF6571A41F76D00DBF696 /* OSXExampleTests.xctest */;
productReference = 04FCF6571A41F76D00DBF696 /* Stripe OSX ExampleTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
/* End PBXNativeTarget section */
@ -293,7 +293,7 @@
};
};
};
buildConfigurationList = 04FCF63F1A41F76D00DBF696 /* Build configuration list for PBXProject "OSXExample" */;
buildConfigurationList = 04FCF63F1A41F76D00DBF696 /* Build configuration list for PBXProject "Stripe OSX Example" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
@ -306,8 +306,8 @@
projectDirPath = "";
projectRoot = "";
targets = (
04FCF6431A41F76D00DBF696 /* OSXExample */,
04FCF6561A41F76D00DBF696 /* OSXExampleTests */,
04FCF6431A41F76D00DBF696 /* Stripe OSX Example */,
04FCF6561A41F76D00DBF696 /* Stripe OSX ExampleTests */,
);
};
/* End PBXProject section */
@ -372,7 +372,7 @@
/* Begin PBXTargetDependency section */
04FCF6591A41F76D00DBF696 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 04FCF6431A41F76D00DBF696 /* OSXExample */;
target = 04FCF6431A41F76D00DBF696 /* Stripe OSX Example */;
targetProxy = 04FCF6581A41F76D00DBF696 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
@ -472,7 +472,7 @@
COMBINE_HIDPI_IMAGES = YES;
INFOPLIST_FILE = OSXExample/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
PRODUCT_NAME = "Stripe OSX Example";
};
name = Debug;
};
@ -483,7 +483,7 @@
COMBINE_HIDPI_IMAGES = YES;
INFOPLIST_FILE = OSXExample/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
PRODUCT_NAME = "Stripe OSX Example";
};
name = Release;
};
@ -502,7 +502,7 @@
);
INFOPLIST_FILE = OSXExampleTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
PRODUCT_NAME = "Stripe OSX ExampleTests";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/OSXExample.app/Contents/MacOS/OSXExample";
};
name = Debug;
@ -518,7 +518,7 @@
);
INFOPLIST_FILE = OSXExampleTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
PRODUCT_NAME = "Stripe OSX ExampleTests";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/OSXExample.app/Contents/MacOS/OSXExample";
};
name = Release;
@ -526,7 +526,7 @@
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
04FCF63F1A41F76D00DBF696 /* Build configuration list for PBXProject "OSXExample" */ = {
04FCF63F1A41F76D00DBF696 /* Build configuration list for PBXProject "Stripe OSX Example" */ = {
isa = XCConfigurationList;
buildConfigurations = (
04FCF65F1A41F76D00DBF696 /* Debug */,
@ -535,7 +535,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
04FCF6611A41F76D00DBF696 /* Build configuration list for PBXNativeTarget "OSXExample" */ = {
04FCF6611A41F76D00DBF696 /* Build configuration list for PBXNativeTarget "Stripe OSX Example" */ = {
isa = XCConfigurationList;
buildConfigurations = (
04FCF6621A41F76D00DBF696 /* Debug */,
@ -544,7 +544,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
04FCF6641A41F76D00DBF696 /* Build configuration list for PBXNativeTarget "OSXExampleTests" */ = {
04FCF6641A41F76D00DBF696 /* Build configuration list for PBXNativeTarget "Stripe OSX ExampleTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
04FCF6651A41F76D00DBF696 /* Debug */,

View File

@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:OSXExample/OSXExample.xcodeproj">
</FileRef>
<FileRef
location = "group:Stripe.xcodeproj">
</FileRef>
<FileRef
location = "group:Example/StripeExample.xcodeproj">
location = "group:Example/Stripe iOS Example.xcodeproj">
</FileRef>
<FileRef
location = "group:OSXExample/Stripe OSX Example.xcodeproj">
</FileRef>
</Workspace>

View File

@ -3,7 +3,7 @@
puts "Checking that version is set correctly..."
git_version = `git describe`.strip.split("-").first
file_version = File.open('VERSION').first.strip
search_result = `grep #{file_version} Stripe/STPAPIClient.h`
search_result = `grep #{file_version} Stripe/PublicHeaders/STPAPIClient.h`
if search_result.length == 0
abort("VERSION does not match STPSDKVersion in STPAPIClient.h")
end