diff options
author | Rüdiger Timm <rt@openoffice.org> | 2007-07-03 10:29:33 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2007-07-03 10:29:33 +0000 |
commit | 002e4248053fe1ca42af79cbc2e51ed7548ded09 (patch) | |
tree | 4227a599bf613defb8b527f1b32a7442d0e16f24 /dmake | |
parent | 5ccc46c2eea6c5d157831f0964db1e45020acf67 (diff) |
INTEGRATION: CWS dmake49 (1.9.2); FILE MERGED
2007/06/20 22:26:11 vq 1.9.2.1: #i74700# Add a new special macro OOODMAKEMODE that is used to toggle
OOo build specific behavior. If OOODMAKEMODE is set (i.e. it begins with y)
the leading ./ of a path will no longer be removed.
This patch also fixes iz78061.
Diffstat (limited to 'dmake')
-rw-r--r-- | dmake/dag.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/dmake/dag.c b/dmake/dag.c index 85dff87a7c58..e06165ece7af 100644 --- a/dmake/dag.c +++ b/dmake/dag.c @@ -1,6 +1,6 @@ /* $RCSfile: dag.c,v $ --- $Revision: 1.9 $ --- last change: $Author: obo $ $Date: 2007-06-12 06:04:33 $ +-- $Revision: 1.10 $ +-- last change: $Author: rt $ $Date: 2007-07-03 11:29:33 $ -- -- SYNOPSIS -- Routines to construct the internal dag. @@ -709,6 +709,8 @@ char *path; { static char *cpath = NIL(char); + DB_ENTER( "_normalize_path" ); + if ( !cpath && ( (cpath = MALLOC( PATH_MAX, char)) == NIL(char) ) ) No_ram(); @@ -718,7 +720,7 @@ char *path; * indistinguishable from a literal $ characters at this point we skip * the normalization if a $ is found. */ if( strchr(path, '$') ) { - return path; + DB_RETURN( path ); } #if __CYGWIN__ @@ -728,6 +730,8 @@ char *path; if (err) Fatal( "error converting \"%s\" - %s\n", path, strerror (errno)); + if( path[2] != '/' && path[2] != '\\' ) + Warning("Malformed DOS path %s converted to %s", path, cpath); } else #endif @@ -738,5 +742,5 @@ char *path; DB_PRINT( "path", ("normalized: %s", cpath )); - return cpath; + DB_RETURN( cpath ); } |