[Commits] (markie) Revise logic of outputDir creation

commits at osafoundation.org commits at osafoundation.org
Mon Apr 26 10:40:01 PDT 2004


Commit by: markie
Modified files:
osaf/hardhat/buildscripts/new-chandler.py 1.8 1.9

Log message:
Revise logic of outputDir creation


ViewCVS links:
http://cvs.osafoundation.org/index.cgi/osaf/hardhat/buildscripts/new-chandler.py.diff?r1=text&tr1=1.8&r2=text&tr2=1.9

Index: osaf/hardhat/buildscripts/new-chandler.py
diff -u osaf/hardhat/buildscripts/new-chandler.py:1.8 osaf/hardhat/buildscripts/new-chandler.py:1.9
--- osaf/hardhat/buildscripts/new-chandler.py:1.8	Mon Apr 26 10:25:54 2004
+++ osaf/hardhat/buildscripts/new-chandler.py	Mon Apr 26 10:39:30 2004
@@ -33,6 +33,17 @@
 
     # make sure workingDir is absolute, remove it, and create it
     workingDir = os.path.abspath(workingDir)
+    if not os.path.exists(workingDir):
+        os.mkdir(workingDir)
+    os.chdir(workingDir)
+
+    # remove outputDir and create it
+    outputDir = os.path.join(workingDir, "output")
+    if os.path.exists(outputDir):
+        hardhatutil.rmdirRecursive(outputDir)
+    os.mkdir(outputDir)
+    
+    # Test to determine if this is a brand new checkout
     print "Check for debug dir ... (indicates first time through)"
     debugDir = os.path.join(workingDir, "debug")
     if not os.path.exists(debugDir):
@@ -345,7 +356,7 @@
         if mode == "debug":
             testStr = "-dt"
         else:
-            testStr = "-t"
+            testStr = "-rt"
     
         print "Testing " + mode
         log.write("- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n")



More information about the Commits mailing list