]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Update GetLibs.vbs to properly return output when running builds of the dependency...
authorMichael Jerris <mike@jerris.com>
Sat, 26 Nov 2005 03:14:12 +0000 (03:14 +0000)
committerMichael Jerris <mike@jerris.com>
Sat, 26 Nov 2005 03:14:12 +0000 (03:14 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@77 d0543943-73ff-0310-b7d9-9358b9ac24b2

w32/vsnet/GetLibs.vbs

index 535a095f8d54b874e845e158dbfd243a1d1fc436..3ea990472e0c21d8ca61cd6bfccc04467d9546a2 100644 (file)
@@ -210,10 +210,16 @@ End Sub
 \r
 Sub BuildViaDevEnv(ProjectFile, BuildType)\r
        Wscript.echo "Building : " & ProjectFile & " Config type: " & BuildType\r
-       Set oExec = WshShell.Exec(Chr(34) & DevEnv & Chr(34) & " " & Chr(34) & ProjectFile & Chr(34) & " /Build " & BuildType)\r
-       Do While oExec.Status <> 1\r
-       WScript.Sleep 100\r
-       Loop\r
+       BuildCmd=Chr(34) & DevEnv & Chr(34) & " " & Chr(34) & ProjectFile & Chr(34) & " /Build " & BuildType\r
+       Set MyFile = fso.CreateTextFile(UtilsDir & "tmpBuild.Bat", True)\r
+       MyFile.WriteLine("@" & BuildCmd)\r
+       MyFile.Close\r
+\r
+       Set oExec = WshShell.Exec(UtilsDir & "tmpBuild.Bat")\r
+       Do\r
+               strFromProc = OExec.StdOut.ReadLine()\r
+               WScript.Echo  strFromProc\r
+       Loop While Not OExec.StdOut.atEndOfStream\r
 End Sub\r
 \r
 Sub GetDevEnv()\r