mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Create output directories if necesary.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@19324 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
35b7fbf96e
commit
cca4f48f6d
2 changed files with 17 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2004-05-14 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Tools/autogsdoc.m: Create output directories if necessary.
|
||||||
|
|
||||||
2004-05-14 Richard Frith-Macdonald <rfm@gnu.org>
|
2004-05-14 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/GSFormat.h:
|
* Source/GSFormat.h:
|
||||||
|
|
|
@ -831,6 +831,9 @@ main(int argc, char **argv, char **env)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mgr = [NSFileManager defaultManager];
|
||||||
|
|
||||||
|
|
||||||
verbose = [defs boolForKey: @"Verbose"];
|
verbose = [defs boolForKey: @"Verbose"];
|
||||||
warn = [defs boolForKey: @"Warn"];
|
warn = [defs boolForKey: @"Warn"];
|
||||||
ignoreDependencies = [defs boolForKey: @"IgnoreDependencies"];
|
ignoreDependencies = [defs boolForKey: @"IgnoreDependencies"];
|
||||||
|
@ -865,6 +868,11 @@ main(int argc, char **argv, char **env)
|
||||||
{
|
{
|
||||||
documentationDirectory = @"";
|
documentationDirectory = @"";
|
||||||
}
|
}
|
||||||
|
if ([documentationDirectory length] > 0
|
||||||
|
&& [mgr fileExistsAtPath: documentationDirectory] == NO)
|
||||||
|
{
|
||||||
|
[mgr createDirectoryAtPath: documentationDirectory attributes: nil];
|
||||||
|
}
|
||||||
|
|
||||||
proc = [NSProcessInfo processInfo];
|
proc = [NSProcessInfo processInfo];
|
||||||
if (proc == nil)
|
if (proc == nil)
|
||||||
|
@ -935,8 +943,6 @@ main(int argc, char **argv, char **env)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mgr = [NSFileManager defaultManager];
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 3) Load old project indexing information from the .igsdoc file if
|
* 3) Load old project indexing information from the .igsdoc file if
|
||||||
* present and determine when the indexing information was last
|
* present and determine when the indexing information was last
|
||||||
|
@ -2246,6 +2252,11 @@ main(int argc, char **argv, char **env)
|
||||||
[depend appendFormat: @" \\\n\t%@", file];
|
[depend appendFormat: @" \\\n\t%@", file];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file = [stamp stringByDeletingLastPathComponent];
|
||||||
|
if ([file length]> 0 && [mgr fileExistsAtPath: file] == NO)
|
||||||
|
{
|
||||||
|
[mgr createDirectoryAtPath: file attributes: nil];
|
||||||
|
}
|
||||||
[depend writeToFile: stamp atomically: YES];
|
[depend writeToFile: stamp atomically: YES];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue