stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ant...@apache.org
Subject svn commit: r391975 - /incubator/stdcxx/trunk/etc/config/windows/generate.wsf
Date Thu, 06 Apr 2006 12:57:31 GMT
Author: antonp
Date: Thu Apr  6 05:57:30 2006
New Revision: 391975

URL: http://svn.apache.org/viewcvs?rev=391975&view=rev
Log:
2006-04-06  Anton Pevtsov  <antonp@moscow.vdiweb.com>

	STDCXX-168
	* generate.wsf (readAndCheckArguments): Conversion to absolute
	path added.
	(createBuildDirs): Added mechanism to create all BUILDDIR
	subfolders.

Modified:
    incubator/stdcxx/trunk/etc/config/windows/generate.wsf

Modified: incubator/stdcxx/trunk/etc/config/windows/generate.wsf
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/etc/config/windows/generate.wsf?rev=391975&r1=391974&r2=391975&view=diff
==============================================================================
--- incubator/stdcxx/trunk/etc/config/windows/generate.wsf (original)
+++ incubator/stdcxx/trunk/etc/config/windows/generate.wsf Thu Apr  6 05:57:30 2006
@@ -217,6 +217,7 @@
     if (WScript.Arguments.Named.Exists("BUILDDIR"))
     {
         outDir = WScript.Arguments.Named("BUILDDIR");
+        outDir = fso.GetAbsolutePathName (outDir);
     }
     
     if (WScript.Arguments.Named.Exists("COPYDLL"))
@@ -237,7 +238,25 @@
         var topdir = srcDir;
         
         if (! fso.FolderExists(builddir))
-            fso.CreateFolder(builddir); 
+        {           
+            var flddir = builddir;
+            var fldrs = new Array();
+            
+            while (! fso.FolderExists(flddir))
+            {   
+                fldrs.push (flddir);
+                flddir = fso.GetParentFolderName (flddir);
+                if ("" == flddir)
+                {
+                    WScript.StdErr.WriteLine("Generate: Fatal error: " + 
+                        "Failed to create folder " + builddir);
+                    WScript.Quit(3);
+                }
+            }
+            
+            while (fldrs.length > 0)
+                fso.CreateFolder(fldrs.pop());
+        }
             
         builddir += "\\" + currentCfg;
         



Mime
View raw message