Skip to content

Commit

Permalink
Merge pull request tomaz#231 from timshadel/brew-templates
Browse files Browse the repository at this point in the history
Allow the selection of a template path at compile time.
  • Loading branch information
tomaz committed Jul 13, 2012
2 parents 78d7011 + 70d7de5 commit 9b1e361
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Application/GBAppledocApplication.m
Expand Up @@ -496,6 +496,16 @@ - (void)injectGlobalSettingsFromArguments:(NSArray *)arguments {
self.templatesFound = YES;
return;
}

#ifdef COMPILE_TIME_DEFAULT_TEMPLATE_PATH
path = COMPILE_TIME_DEFAULT_TEMPLATE_PATH;
if ([self validateTemplatesPath:path error:nil]) {
[self overrideSettingsWithGlobalSettingsFromPath:path];
self.settings.templatesPath = path;
self.templatesFound = YES;
return;
}
#endif
}
}

Expand Down

0 comments on commit 9b1e361

Please sign in to comment.