Skip to content

Commit

Permalink
calabash-version binary correctly reports version
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoody committed Apr 2, 2014
1 parent c37b3fc commit f78f4c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Makefile
@@ -1,9 +1,11 @@
default:
rm -rf build
rm -rf calabash.framework
xcodebuild -target "calabash-simulator" -configuration Debug SYMROOT=build SDKROOT=iphonesimulator IPHONEOS_DEPLOYMENT_TARGET=5.1.1
xcodebuild -target "calabash-device" -configuration Debug SYMROOT=build SDKROOT=iphoneos IPHONEOS_DEPLOYMENT_TARGET=5.1.1
xcodebuild -target "version" -configuration Debug SYMROOT=build
scripts/make-framework.rb verify

clean:
rm -rf build
rm -rf calabash.framework
3 changes: 2 additions & 1 deletion calabash-version/main.m
Expand Up @@ -12,7 +12,8 @@
int main(int argc, const char * argv[]) {

@autoreleasepool {
printf("%s\n", [kLPCALABASHVERSION cStringUsingEncoding:NSASCIIStringEncoding]);
NSString *calabashVersion = [kLPCALABASHVERSION componentsSeparatedByString:@" "].lastObject;
printf("%s\n", [calabashVersion cStringUsingEncoding:NSASCIIStringEncoding]);
}
return 0;
}

0 comments on commit f78f4c9

Please sign in to comment.