the principal class should now be set in any cases

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@8584 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Robert Slover 2001-01-13 15:56:33 +00:00
parent b9b4075e9f
commit 6edda48f03

View file

@ -81,9 +81,16 @@ static PCBundleMakefileFactory *_factory = nil;
[string appendString:[NSString stringWithFormat:@"BUNDLE_NAME=%@\n",prName]];
[string appendString:[NSString stringWithFormat:@"BUNDLE_EXTENSION=.bundle\n"]];
[string appendString:[NSString stringWithFormat:@"BUNDLE_INSTALL_DIR=%@\n",installDir]];
if ([prDict objectForKey:PCPrincipalClass]) {
[string appendString:[NSString stringWithFormat:@"%@_PRINCIPAL_CLASS=%@\n",prName,[prDict objectForKey:PCPrincipalClass]]];
if ((tmp = [prDict objectForKey:PCPrincipalClass]) &&
[tmp isEqualToString:@""] == NO) {
}
else if ((tmp = [[prDict objectForKey:PCClasses] objectAtIndex:0])) {
}
else {
tmp = [NSString string];
}
[string appendString:[NSString stringWithFormat:@"%@_PRINCIPAL_CLASS=%@\n",prName,tmp]];
[string appendString:@"#\n\n"];
[string appendString:@"# Additional libraries\n"];