mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-15 16:11:25 +00:00
Use path component instead of hard-coded slash
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@28705 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
daa35431f2
commit
2db88e2844
2 changed files with 12 additions and 9 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2009-09-18 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
|
||||||
|
* Framework/PCProjectLauncher.m
|
||||||
|
Use path component instead of hard-coded slash
|
||||||
|
|
||||||
2009-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
|
2009-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
|
||||||
|
|
||||||
* Framework/PCMakefileFactory.m ([-createMakefileForProject:]): If
|
* Framework/PCMakefileFactory.m ([-createMakefileForProject:]): If
|
||||||
|
|
|
@ -289,10 +289,9 @@ enum {
|
||||||
NSMutableArray *args = [[NSMutableArray alloc] init];
|
NSMutableArray *args = [[NSMutableArray alloc] init];
|
||||||
NSPipe *logPipe;
|
NSPipe *logPipe;
|
||||||
NSPipe *errorPipe;
|
NSPipe *errorPipe;
|
||||||
NSMutableString *executablePath;
|
NSString *executablePath;
|
||||||
|
|
||||||
executablePath = [NSMutableString string];
|
executablePath = [NSMutableString stringWithString:[project projectPath]];
|
||||||
[executablePath appendString:[project projectPath]];
|
|
||||||
|
|
||||||
// Check if project type is executable
|
// Check if project type is executable
|
||||||
if ([project isExecutable])
|
if ([project isExecutable])
|
||||||
|
@ -304,16 +303,15 @@ enum {
|
||||||
if ([prjType isEqualToString: @"Application"])
|
if ([prjType isEqualToString: @"Application"])
|
||||||
{
|
{
|
||||||
/* MyApplication.app/MyApplication */
|
/* MyApplication.app/MyApplication */
|
||||||
[executablePath appendString:@"/"];
|
executablePath = [executablePath stringByAppendingPathComponent:[project projectName]];
|
||||||
[executablePath appendString:[project projectName]];
|
executablePath = [executablePath stringByAppendingString:@".app"];
|
||||||
[executablePath appendString:@".app/"];
|
executablePath = [executablePath stringByAppendingPathComponent:[project projectName]];
|
||||||
[executablePath appendString:[project projectName]];
|
|
||||||
}
|
}
|
||||||
else if ([prjType isEqualToString: @"Tool"])
|
else if ([prjType isEqualToString: @"Tool"])
|
||||||
{
|
{
|
||||||
/* obj/MyTool */
|
/* obj/MyTool */
|
||||||
[executablePath appendString:@"/obj/"];
|
executablePath = [executablePath stringByAppendingPathComponent:@"obj"];
|
||||||
[executablePath appendString:[project projectName]];
|
executablePath = [executablePath stringByAppendingPathComponent:[project projectName]];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue