mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +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
c6df2e3852
commit
a9d2de97c1
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>
|
||||
|
||||
* Source/GSFormat.h:
|
||||
|
|
|
@ -831,6 +831,9 @@ main(int argc, char **argv, char **env)
|
|||
}
|
||||
}
|
||||
|
||||
mgr = [NSFileManager defaultManager];
|
||||
|
||||
|
||||
verbose = [defs boolForKey: @"Verbose"];
|
||||
warn = [defs boolForKey: @"Warn"];
|
||||
ignoreDependencies = [defs boolForKey: @"IgnoreDependencies"];
|
||||
|
@ -865,6 +868,11 @@ main(int argc, char **argv, char **env)
|
|||
{
|
||||
documentationDirectory = @"";
|
||||
}
|
||||
if ([documentationDirectory length] > 0
|
||||
&& [mgr fileExistsAtPath: documentationDirectory] == NO)
|
||||
{
|
||||
[mgr createDirectoryAtPath: documentationDirectory attributes: nil];
|
||||
}
|
||||
|
||||
proc = [NSProcessInfo processInfo];
|
||||
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
|
||||
* 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];
|
||||
}
|
||||
|
||||
file = [stamp stringByDeletingLastPathComponent];
|
||||
if ([file length]> 0 && [mgr fileExistsAtPath: file] == NO)
|
||||
{
|
||||
[mgr createDirectoryAtPath: file attributes: nil];
|
||||
}
|
||||
[depend writeToFile: stamp atomically: YES];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue