mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
@@ -1,23 +0,0 @@
|
||||
#import <OSAKit/OSAKit.h>
|
||||
|
||||
static double const AppVersion = 1.0;
|
||||
|
||||
int main (int argc, char const* argv[])
|
||||
{
|
||||
if(argc == 2 && (strcmp(argv[1], "--version") == 0 || strcmp(argv[1], "-v") == 0))
|
||||
{
|
||||
fprintf(stdout, "%1$s %2$.1f (" __DATE__ ")\n", getprogname(), AppVersion);
|
||||
return EX_OK;
|
||||
}
|
||||
|
||||
@autoreleasepool {
|
||||
NSDictionary* errorInfo = nil;
|
||||
OSAScript* script = [[OSAScript alloc] initWithCompiledData:[[NSFileHandle fileHandleWithStandardInput] readDataToEndOfFile] error:&errorInfo];
|
||||
std::string str = [[script source] UTF8String];
|
||||
|
||||
std::replace(str.begin(), str.end(), '\r', '\n');
|
||||
write(STDOUT_FILENO, str.data(), str.size());
|
||||
}
|
||||
|
||||
return EX_OK;
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
SOURCES = src/*.mm
|
||||
FRAMEWORKS = Foundation OSAKit
|
||||
Reference in New Issue
Block a user