Skip to content

Commit

Permalink
Implemented automatic enabling of creation steps if certain setting i…
Browse files Browse the repository at this point in the history
…s used but the setting it depends on isn't.

For example, this allows simply saying `--publish-docset` and have automatically enabled HTML and docset creation and installation options without explicitly stating them.
  • Loading branch information
tomaz committed Jan 12, 2011
1 parent a795d63 commit 02f06f5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Application/GBAppledocApplication.m
Expand Up @@ -409,6 +409,11 @@ - (void)validateSettingsAndArguments:(NSArray *)arguments {
ddprintf(@"WARN: --%@ argument or global setting not given, but creating DocSet is enabled, will use '%@'!\n", kGBArgCompanyIdentifier, self.settings.companyIdentifier);
}
}

// Make sure to switch on any setting thats required by "higher" level one.
if (self.settings.publishDocSet) self.settings.installDocSet = YES;
if (self.settings.installDocSet) self.settings.createDocSet = YES;
if (self.settings.createDocSet) self.settings.createHTML = YES;
}

- (NSString *)standardizeCurrentDirectoryForPath:(NSString *)path {
Expand Down

0 comments on commit 02f06f5

Please sign in to comment.