Skip to content

new template variable options #73

Closed
wants to merge 2 commits into from

4 participants

@mlilback

Added a --use-pbx-vars option that adds to TemplateVar the standard and custom macros Xcode uses when generating files from templates.Also added contributed templates that include the Xcode-like comments at the top of the generated files.

mlilback added some commits Sep 18, 2011
@mlilback mlilback added --use-pbx-vars option that includes as template variables the s…
…tandard Xcode template variables of DATE, YEAR, FULLUSERNAME, and any key-values stored in PBXCustomTemplateMacroDefinitions such as ORGANIZATIONNAME. Figuring out the project name didn't seem worth it -- use a --template-var option.
1b54c93
@mlilback mlilback added --use-pbx-vars option that includes as template variables the s…
…tandard Xcode template variables of DATE, YEAR, FULLUSERNAME, and any key-values stored in PBXCustomTemplateMacroDefinitions such as ORGANIZATIONNAME. Figuring out the project name didn't seem worth it -- use a --template-var option.
9bba41e
@rentzsch
Owner

Interesting. Won't <$TemplateVar.FULLUSERNAME$> change depending on which user is regenerating the code, causing spurious changes?

@mlilback

I thought mogenerator only made changes if they were necessary? In that case, there shouldn't be spurious changes to source control. Otherwise, it provides a quick look at who last generated the code. The human readable code should only be generated once, right?

@mlilback mlilback closed this Sep 22, 2011
@mlilback mlilback reopened this Sep 22, 2011
@rentzsch
Owner

mogenerator writes out machine files if they don't already exist or if the content would be different. See https://github.com/rentzsch/mogenerator/blob/1.27/mogenerator.m#L848

So, there would be spurious changes in the machine files, though the human files should avoid it since those are create-only.

I don't see an easy way to solve the spurious machine files regen problem.

@robrix
robrix commented Jun 17, 2013

Could just remove the “by …” from the machine files.

@justin
Collaborator
justin commented Dec 26, 2015

This is pretty ancient. Going to close it out. if it's still something you'd like to see, please open a new PR pointed at develop and we can discuss.

@justin justin closed this Dec 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.