mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-15 08:00:56 +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>
|
||||
|
||||
* Framework/PCMakefileFactory.m ([-createMakefileForProject:]): If
|
||||
|
|
|
@ -289,10 +289,9 @@ enum {
|
|||
NSMutableArray *args = [[NSMutableArray alloc] init];
|
||||
NSPipe *logPipe;
|
||||
NSPipe *errorPipe;
|
||||
NSMutableString *executablePath;
|
||||
NSString *executablePath;
|
||||
|
||||
executablePath = [NSMutableString string];
|
||||
[executablePath appendString:[project projectPath]];
|
||||
executablePath = [NSMutableString stringWithString:[project projectPath]];
|
||||
|
||||
// Check if project type is executable
|
||||
if ([project isExecutable])
|
||||
|
@ -304,16 +303,15 @@ enum {
|
|||
if ([prjType isEqualToString: @"Application"])
|
||||
{
|
||||
/* MyApplication.app/MyApplication */
|
||||
[executablePath appendString:@"/"];
|
||||
[executablePath appendString:[project projectName]];
|
||||
[executablePath appendString:@".app/"];
|
||||
[executablePath appendString:[project projectName]];
|
||||
executablePath = [executablePath stringByAppendingPathComponent:[project projectName]];
|
||||
executablePath = [executablePath stringByAppendingString:@".app"];
|
||||
executablePath = [executablePath stringByAppendingPathComponent:[project projectName]];
|
||||
}
|
||||
else if ([prjType isEqualToString: @"Tool"])
|
||||
{
|
||||
/* obj/MyTool */
|
||||
[executablePath appendString:@"/obj/"];
|
||||
[executablePath appendString:[project projectName]];
|
||||
executablePath = [executablePath stringByAppendingPathComponent:@"obj"];
|
||||
executablePath = [executablePath stringByAppendingPathComponent:[project projectName]];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue