OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 function Unzip(file, path, verbose) { | 5 function Unzip(file, path, verbose) { |
6 if (verbose) { | 6 if (verbose) { |
7 WScript.StdOut.Write(" * UNZIP " + file); | 7 WScript.StdOut.Write(" * UNZIP " + file); |
8 } | 8 } |
9 var shell_app; | 9 var shell_app; |
10 var fso; | 10 var fso; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 var result = (this + (this < 0 ? 0x100000000 : 0)).toString(16); | 82 var result = (this + (this < 0 ? 0x100000000 : 0)).toString(16); |
83 while (result.length < length) result = "0" + result; | 83 while (result.length < length) result = "0" + result; |
84 return result; | 84 return result; |
85 }; | 85 }; |
86 | 86 |
87 if (WScript.Arguments.length != 2) { | 87 if (WScript.Arguments.length != 2) { |
88 WScript.StdOut.Write("Incorrect arguments to unzip.js") | 88 WScript.StdOut.Write("Incorrect arguments to unzip.js") |
89 } else { | 89 } else { |
90 Unzip(WScript.Arguments(0), WScript.Arguments(1), false); | 90 Unzip(WScript.Arguments(0), WScript.Arguments(1), false); |
91 } | 91 } |
OLD | NEW |