<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/b3fdb04e30b222454fdb72c89c5803988684e3da">https://github.com/macports/macports-ports/commit/b3fdb04e30b222454fdb72c89c5803988684e3da</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new b3fdb04e30b mogenerator: update to 1.32 for new systems, offer versions for older ones
</span>b3fdb04e30b is described below
<span style='display:block; white-space:pre;color:#808000;'>commit b3fdb04e30b222454fdb72c89c5803988684e3da
</span>Author: Sergey Fedorov <vital.had@gmail.com>
AuthorDate: Thu Jun 22 12:00:21 2023 +0800
<span style='display:block; white-space:pre;color:#404040;'> mogenerator: update to 1.32 for new systems, offer versions for older ones
</span>---
devel/mogenerator/Portfile | 54 +++++--
devel/mogenerator/files/0001-Unbreak-10.7.patch | 207 ++++++++++++++++++++++++
2 files changed, 245 insertions(+), 16 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/mogenerator/Portfile b/devel/mogenerator/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index dcd8cfb5303..3c77f75731b 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/mogenerator/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/mogenerator/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,18 +4,42 @@ PortSystem 1.0
</span> PortGroup github 1.0
PortGroup xcode 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-github.setup rentzsch mogenerator 1.31
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.major} > 13} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Pick fixes from upstream:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ github.setup rentzsch mogenerator 2d7f9b452eaa951f84304caa196585992ff50acf
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ version 1.32
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 866725be8fbf14414cc142974414891c5b7e350e \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 7fcec6884a9662a96f4cb65d7626f7423708aa1e6c56b16fc89d452c6be38a4c \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 394278
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} elseif {${os.major} > 11} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ github.setup rentzsch mogenerator 1.30.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 ce8d2d6ce366e6d3d5ee2a8b1892a8147137655f \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 d31461d750f24185531da5bd5595a4d3c0f06cec72cb46618fbe3e67ba84a319 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 312659
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Peg for old systems:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ github.setup rentzsch mogenerator 1.28
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 8a8a9ebe7d21509b1704d040bbe8e82a90ab0ef1 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 6f8429741f0acee0380eccdf426d81dbadab62d0aaa9f1b82c562ee727fe38a5 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 351443
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 0001-Unbreak-10.7.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+epoch 1
</span> categories devel
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms macosx
</span> maintainers nomaintainer
license MIT
description Core Data code generation
<span style='display:block; white-space:pre;background:#ffe0e0;'>-long_description mogenerator is a command-line tool that, given an \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- .xcdatamodel file, will generate two classes per entity. The \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- first class, _MyEntity, is intended solely for machine \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description mogenerator is a command-line tool that, given \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ an .xcdatamodel file, will generate two classes per entity. \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ The first class, _MyEntity, is intended solely for machine \
</span> consumption and will be continuously overwritten to stay in \
sync with your data model. The second class, MyEntity, \
subclasses _MyEntity, won't ever be overwritten and is \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -23,21 +47,19 @@ long_description mogenerator is a command-line tool that, given an \
</span>
homepage http://rentzsch.github.io/mogenerator/
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# Remove this with the next version update
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dist_subdir ${name}/${version}_1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 c1b257eb5ed9f5ebc9a2e9af0698e27f0c9d2675 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 8a555493efc5d33df898dcf2cbec74c33ab2257e3c81197a31f30a036bd3aeb1 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 313326
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> xcode.configuration Release
destroot {
xinstall ${worksrcpath}/build/Release/mogenerator ${destroot}${prefix}/bin
set docdir ${prefix}/share/doc/${subport}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.major} > 13} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set docs [list CONTRIBUTING.md README.md Version-History.md]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set docs [list CONTRIBUTING.md README.markdown]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> xinstall -d ${destroot}${docdir}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 0644 -W ${worksrcpath} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- README.markdown \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${docdir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach doc ${docs} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0644 -W ${worksrcpath} ${doc} ${destroot}${docdir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/mogenerator/files/0001-Unbreak-10.7.patch b/devel/mogenerator/files/0001-Unbreak-10.7.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..ed4da776a67
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/mogenerator/files/0001-Unbreak-10.7.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,207 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From cca0664e7fd42f6c046e1bee7fdf91eee74e5d77 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: barracuda156 <vital.had@gmail.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Thu, 22 Jun 2023 09:30:32 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH] Unbreak < 10.7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ddcli/DDGetoptLongParser.h | 10 ---------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ddcli/DDGetoptLongParser.m | 32 ---------------------------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ mogenerator.h | 1 -
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ mogenerator.m | 11 +--------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ mogenerator.xcodeproj/project.pbxproj | 2 --
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test/Rakefile | 19 +---------------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 6 files changed, 2 insertions(+), 73 deletions(-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git ddcli/DDGetoptLongParser.h ddcli/DDGetoptLongParser.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index f37a092..a0c09a6 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ddcli/DDGetoptLongParser.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ddcli/DDGetoptLongParser.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -85,7 +85,6 @@ typedef struct
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int mCurrentOption;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ NSMutableArray * mUtf8Data;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DDGetoptFunction mGetoptFunction;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- NSString *mArgumentsFilename;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /**
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -177,15 +176,6 @@ typedef struct
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ - (NSArray *) parseOptionsWithArguments: (NSArray *) arguments
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ command: (NSString *) command;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-/**
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- * If set, provides the name of a file, located in the current working
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- * directory, containing command-line arguments in a simple JSON array
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- *
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- * @param filename Name of the file to look for in the current working directory
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-- (void)setArgumentsFilename:(NSString*)filename;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @end
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /**
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git ddcli/DDGetoptLongParser.m ddcli/DDGetoptLongParser.m
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 29d4f3d..09e70df 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ddcli/DDGetoptLongParser.m
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ddcli/DDGetoptLongParser.m
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -73,7 +73,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [mOptionString release];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [mOptionsData release];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [mUtf8Data release];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- [mArgumentsFilename release];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [super dealloc];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -88,11 +87,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ mTarget = target;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-- (void) setArgumentsFilename:(NSString *)filename
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-{
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- mArgumentsFilename = [filename copy];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ - (void) setGetoptLongOnly: (BOOL) getoptLongOnly
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (getoptLongOnly)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -168,32 +162,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ NSProcessInfo * processInfo = [NSProcessInfo processInfo];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ NSArray * arguments = [processInfo arguments];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (mArgumentsFilename != nil) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (NSClassFromString(@"NSJSONSerialization") == nil) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- fprintf(stderr, "Warning: ignoring %s, feature supported from OS X 10.7 onwards\n", [mArgumentsFilename UTF8String]);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- NSFileManager *fm = [NSFileManager defaultManager];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- NSString *argumentsFilePath = [[fm currentDirectoryPath] stringByAppendingPathComponent:mArgumentsFilename];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if ([fm fileExistsAtPath:argumentsFilePath]) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- NSError *error;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- NSArray *argumentsFromFile = [NSJSONSerialization JSONObjectWithData:[NSData dataWithContentsOfFile:argumentsFilePath] options:0 error:&error];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (argumentsFromFile != nil) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- NSAssert([arguments count] > 0, @"Process has no arguments (not even the command). Weird.");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- NSString *command = [arguments objectAtIndex:0];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- arguments = [arguments subarrayWithRange:NSMakeRange(1, [arguments count] - 1)];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- NSMutableArray *mutableArguments = [NSMutableArray arrayWithObject:command];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- [mutableArguments addObjectsFromArray:argumentsFromFile];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- [mutableArguments addObjectsFromArray:arguments];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- arguments = [NSArray arrayWithArray:mutableArguments];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- fprintf(stderr, "Error reading %s: %s\n", [mArgumentsFilename UTF8String], [[error localizedDescription] UTF8String]);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- exit(1);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ NSString * command = [processInfo processName];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return [self parseOptionsWithArguments: arguments command: command];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git mogenerator.h mogenerator.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 5b9226e..781e4ab 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- mogenerator.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ mogenerator.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -77,7 +77,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ BOOL _listSourceFiles;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ BOOL _orphaned;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ BOOL _swift;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- BOOL _v2;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ NSMutableDictionary *templateVar;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @end
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git mogenerator.m mogenerator.m
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index e86bc90..3ec30d3 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- mogenerator.m
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ mogenerator.m
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -664,9 +664,7 @@ NSString *ApplicationSupportSubdirectoryName = @"mogenerator";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [optionsParser setGetoptLongOnly:YES];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DDGetoptOption optionTable[] =
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- // Long Short Argument options
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- {@"v2", '2', DDGetoptNoArgument},
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ // Long Short Argument options
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {@"model", 'm', DDGetoptRequiredArgument},
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {@"configuration", 'C', DDGetoptRequiredArgument},
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {@"base-class", 0, DDGetoptRequiredArgument},
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -693,7 +691,6 @@ NSString *ApplicationSupportSubdirectoryName = @"mogenerator";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {nil, 0, 0},
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ };
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [optionsParser addOptionsFromTable:optionTable];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- [optionsParser setArgumentsFilename:@".mogenerator-args"];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ - (void)printUsage {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -925,12 +922,6 @@ NSString *ApplicationSupportSubdirectoryName = @"mogenerator";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ printf("mogenerator 1.28. By Jonathan 'Wolf' Rentzsch + friends.\n");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return EXIT_SUCCESS;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (_v2) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- [templateVar setObject:@YES forKey:@"arc"];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- [templateVar setObject:@YES forKey:@"literals"];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- [templateVar setObject:@YES forKey:@"modules"];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ gSwift = _swift;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git mogenerator.xcodeproj/project.pbxproj mogenerator.xcodeproj/project.pbxproj
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index bbc03c2..2b2825c 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- mogenerator.xcodeproj/project.pbxproj
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ mogenerator.xcodeproj/project.pbxproj
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -473,7 +473,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ GCC_OPTIMIZATION_LEVEL = 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ GCC_PREFIX_HEADER = mogenerator_Prefix.pch;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ OTHER_LDFLAGS = (
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "-sectcreate",
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -494,7 +493,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ GCC_PREFIX_HEADER = mogenerator_Prefix.pch;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ OTHER_LDFLAGS = (
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "-sectcreate",
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git test/Rakefile test/Rakefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 19095c8..c8acf4d 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- test/Rakefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ test/Rakefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -17,7 +17,7 @@ def gen_and_compile(desc, mogenPath, extra_mogen_args, extra_gcc_args)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ENV['MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS'] = '1'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ run_or_die "#{mogenPath.gsub(/ /, '\\ ')} --model test.xcdatamodel --output MOs --baseClass MyBaseClass #{extra_mogen_args}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ run_or_die 'cp HumanMO.h HumanMO.m MyProtocol.h TestProtocol.m MOs'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- run_or_die "clang -o testbin test.m MyBaseClass.m Gender.m MOs/*.m -I#{Dir.pwd} -framework Foundation -framework Cocoa -framework CoreData -fmodules #{extra_gcc_args}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ run_or_die "clang -o testbin test.m MyBaseClass.m Gender.m MOs/*.m -I#{Dir.pwd} -framework Foundation -framework Cocoa -framework CoreData #{extra_gcc_args}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ run_or_die "xcrun momc -MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS test.xcdatamodel #{Dir.pwd}/test.mom"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ puts run_or_die './testbin'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ end
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -32,23 +32,6 @@ task :mrc_noliterals do
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ gen_and_compile('MRC (without objc literals)', mogenPath, '--template-var noliterals=true', '')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ end
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-desc 'Generate, Compile and Run ARC Code (with objc literals)'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-task :arc do
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- gen_and_compile('ARC (with objc literals)', mogenPath, '--template-var arc=true', '-fobjc-arc')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-end
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-desc 'Generate, Compile and Run ARC Code (without objc literals)'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-task :arc_noliterals do
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- gen_and_compile('ARC (without objc literals)', mogenPath, '--template-var arc=true --template-var noliterals=true', '-fobjc-arc')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-end
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-desc 'Generate, Compile and Run ARC Code (without objc literals)'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-task :v2 do
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- Rake::Task[:clean].execute
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- gen_and_compile('v2 (ARC + objc literals)', mogenPath, '--v2', '-fobjc-arc')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- Rake::Task[:clean].execute
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-end
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ desc 'Clean output'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ task :clean do
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ run_or_die 'rm -rf MOs testbin test.mom'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.41.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>