mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-26 12:37:26 +00:00
FS-4768 rest of garmts changes mostly cosmetic
This commit is contained in:
parent
dd25e7ea36
commit
40cbc5c0e5
@ -143,31 +143,40 @@ Sub UnCompress(Archive, DestFolder)
|
|||||||
Do
|
Do
|
||||||
WScript.Echo OExec.StdOut.ReadLine()
|
WScript.Echo OExec.StdOut.ReadLine()
|
||||||
Loop While Not OExec.StdOut.atEndOfStream
|
Loop While Not OExec.StdOut.atEndOfStream
|
||||||
If FSO.FileExists(Left(Archive, Len(Archive)-3))Then
|
wscript.echo("Ready extracting: " & Archive)
|
||||||
|
Fn = Left(Archive, Len(Archive)-3)
|
||||||
|
If FSO.FileExists(Fn) Then
|
||||||
WScript.Sleep(100)
|
WScript.Sleep(100)
|
||||||
|
wscript.echo("Processing: " & Fn & " - deleting " & batname)
|
||||||
FSO.DeleteFile UtilsDir & batname, True
|
FSO.DeleteFile UtilsDir & batname, True
|
||||||
Set MyFile = fso.CreateTextFile(UtilsDir & batname, True)
|
Set MyFile = fso.CreateTextFile(UtilsDir & batname, True)
|
||||||
MyFile.WriteLine("@" & quote & UtilsDir & "7za.exe" & quote & " x " & quote & Left(Archive, Len(Archive)-3) & quote & " -y -o" & quote & DestFolder & quote )
|
MyFile.WriteLine("@" & quote & UtilsDir & "7za.exe" & quote & " x " & quote & Fn & quote & " -y -o" & quote & DestFolder & quote )
|
||||||
MyFile.Close
|
MyFile.Close
|
||||||
Set oExec = WshShell.Exec(UtilsDir & batname)
|
Set oExec = WshShell.Exec(UtilsDir & batname)
|
||||||
Do
|
Do
|
||||||
WScript.Echo OExec.StdOut.ReadLine()
|
WScript.Echo OExec.StdOut.ReadLine()
|
||||||
Loop While Not OExec.StdOut.atEndOfStream
|
Loop While Not OExec.StdOut.atEndOfStream
|
||||||
|
wscript.echo("Ready extracting: " & Fn)
|
||||||
WScript.Sleep(500)
|
WScript.Sleep(500)
|
||||||
FSO.DeleteFile Left(Archive, Len(Archive)-3) ,true
|
wscript.echo("Deleting: " & Fn)
|
||||||
|
FSO.DeleteFile Fn,true
|
||||||
End If
|
End If
|
||||||
If FSO.FileExists(Left(Archive, Len(Archive)-3) & "tar")Then
|
Fn= Fn & tar
|
||||||
|
If FSO.FileExists(Fn) Then
|
||||||
WScript.Sleep(100)
|
WScript.Sleep(100)
|
||||||
|
wscript.echo("Processing: " & Fn & " - deleting " & batname)
|
||||||
FSO.DeleteFile UtilsDir & batname, True
|
FSO.DeleteFile UtilsDir & batname, True
|
||||||
Set MyFile = fso.CreateTextFile(UtilsDir & batname, True)
|
Set MyFile = fso.CreateTextFile(UtilsDir & batname, True)
|
||||||
MyFile.WriteLine("@" & quote & UtilsDir & "7za.exe" & quote & " x " & quote & Left(Archive, Len(Archive)-3) & "tar" & quote & " -y -o" & quote & DestFolder & quote )
|
MyFile.WriteLine("@" & quote & UtilsDir & "7za.exe" & quote & " x " & quote & Fn & quote & " -y -o" & quote & DestFolder & quote )
|
||||||
MyFile.Close
|
MyFile.Close
|
||||||
Set oExec = WshShell.Exec(UtilsDir & batname)
|
Set oExec = WshShell.Exec(UtilsDir & batname)
|
||||||
Do
|
Do
|
||||||
WScript.Echo OExec.StdOut.ReadLine()
|
WScript.Echo OExec.StdOut.ReadLine()
|
||||||
Loop While Not OExec.StdOut.atEndOfStream
|
Loop While Not OExec.StdOut.atEndOfStream
|
||||||
|
wscript.echo("Ready extracting: " & Fn )
|
||||||
WScript.Sleep(500)
|
WScript.Sleep(500)
|
||||||
FSO.DeleteFile Left(Archive, Len(Archive)-3) & "tar",true
|
wscript.echo("Deleting: " & Fn)
|
||||||
|
FSO.DeleteFile Fn,true
|
||||||
End If
|
End If
|
||||||
|
|
||||||
WScript.Sleep(500)
|
WScript.Sleep(500)
|
||||||
@ -182,10 +191,9 @@ Sub Wget(URL, DestFolder)
|
|||||||
filename=Right(URL,strlength-StartPos)
|
filename=Right(URL,strlength-StartPos)
|
||||||
If Right(DestFolder, 1) <> "\" Then DestFolder = DestFolder & "\" End If
|
If Right(DestFolder, 1) <> "\" Then DestFolder = DestFolder & "\" End If
|
||||||
|
|
||||||
Wscript.echo("Downloading: " & URL)
|
|
||||||
|
|
||||||
If UseWgetEXE Then
|
If UseWgetEXE Then
|
||||||
batname = "tmp" & CStr(Int(10000*Rnd)) & ".bat"
|
Wscript.echo("Downloading (wget): " & URL)
|
||||||
|
batname = "tmp" & CStr(Int(100000*Rnd)) & ".bat"
|
||||||
Set MyFile = fso.CreateTextFile(UtilsDir & batname, True)
|
Set MyFile = fso.CreateTextFile(UtilsDir & batname, True)
|
||||||
MyFile.WriteLine("@cd " & quote & DestFolder & quote)
|
MyFile.WriteLine("@cd " & quote & DestFolder & quote)
|
||||||
MyFile.WriteLine("@" & quote & UtilsDir & "wget.exe" & quote & " " & URL)
|
MyFile.WriteLine("@" & quote & UtilsDir & "wget.exe" & quote & " " & URL)
|
||||||
@ -196,6 +204,8 @@ If UseWgetEXE Then
|
|||||||
Loop While Not OExec.StdOut.atEndOfStream
|
Loop While Not OExec.StdOut.atEndOfStream
|
||||||
|
|
||||||
Else
|
Else
|
||||||
|
Wscript.echo("Downloading (HTTP GET): " & URL)
|
||||||
|
|
||||||
xml.Open "GET", URL, False
|
xml.Open "GET", URL, False
|
||||||
xml.Send
|
xml.Send
|
||||||
|
|
||||||
@ -279,7 +289,6 @@ Sub FindReplaceInFile(FileName, sFind, sReplace)
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Function ExecAndGetResult(tmpFolder, VersionDir, execStr)
|
Function ExecAndGetResult(tmpFolder, VersionDir, execStr)
|
||||||
|
|
||||||
Set MyFile = FSO.CreateTextFile(tmpFolder & "tmpExec.Bat", True)
|
Set MyFile = FSO.CreateTextFile(tmpFolder & "tmpExec.Bat", True)
|
||||||
MyFile.WriteLine("@" & "cd " & quote & VersionDir & quote)
|
MyFile.WriteLine("@" & "cd " & quote & VersionDir & quote)
|
||||||
MyFile.WriteLine("@" & execStr)
|
MyFile.WriteLine("@" & execStr)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user