mistachkin | 7aa3ebe | 2016-02-24 21:42:03 +0000 | [diff] [blame] | 1 | #!/usr/bin/tclsh |
| 2 | # |
| 3 | # This script is used to quickly test a VSIX (Visual Studio Extension) file |
| 4 | # with Visual Studio 2015 on Windows. |
| 5 | # |
| 6 | # PREREQUISITES |
| 7 | # |
mistachkin | 74c2f06 | 2016-02-25 23:27:02 +0000 | [diff] [blame] | 8 | # 1. This tool is Windows only. |
mistachkin | 7aa3ebe | 2016-02-24 21:42:03 +0000 | [diff] [blame] | 9 | # |
mistachkin | 74c2f06 | 2016-02-25 23:27:02 +0000 | [diff] [blame] | 10 | # 2. This tool must be executed with "elevated administrator" privileges. |
mistachkin | 6ae4d84 | 2016-02-25 02:56:53 +0000 | [diff] [blame] | 11 | # |
mistachkin | 74c2f06 | 2016-02-25 23:27:02 +0000 | [diff] [blame] | 12 | # 3. Tcl 8.4 and later are supported, earlier versions have not been tested. |
| 13 | # |
| 14 | # 4. The "sqlite-UWP-output.vsix" file is assumed to exist in the parent |
mistachkin | 7aa3ebe | 2016-02-24 21:42:03 +0000 | [diff] [blame] | 15 | # directory of the directory containing this script. The [optional] first |
| 16 | # command line argument to this script may be used to specify an alternate |
| 17 | # file. However, currently, the file must be compatible with both Visual |
| 18 | # Studio 2015 and the Universal Windows Platform. |
| 19 | # |
mistachkin | 74c2f06 | 2016-02-25 23:27:02 +0000 | [diff] [blame] | 20 | # 5. The "VERSION" file is assumed to exist in the parent directory of the |
mistachkin | c32db46 | 2016-02-25 02:49:58 +0000 | [diff] [blame] | 21 | # directory containing this script. It must contain a version number that |
| 22 | # matches the VSIX file being tested. |
| 23 | # |
mistachkin | 74c2f06 | 2016-02-25 23:27:02 +0000 | [diff] [blame] | 24 | # 6. The temporary directory specified in the TEMP or TMP environment variables |
mistachkin | 7aa3ebe | 2016-02-24 21:42:03 +0000 | [diff] [blame] | 25 | # must refer to an existing directory writable by the current user. |
| 26 | # |
mistachkin | 74c2f06 | 2016-02-25 23:27:02 +0000 | [diff] [blame] | 27 | # 7. The VS140COMNTOOLS environment variable must refer to the Visual Studio |
mistachkin | 7aa3ebe | 2016-02-24 21:42:03 +0000 | [diff] [blame] | 28 | # 2015 common tools directory. |
| 29 | # |
| 30 | # USAGE |
| 31 | # |
| 32 | # The first argument to this script is optional. If specified, it must be the |
| 33 | # name of the VSIX file to test. |
| 34 | # |
| 35 | package require Tcl 8.4 |
| 36 | |
| 37 | proc fail { {error ""} {usage false} } { |
| 38 | if {[string length $error] > 0} then { |
| 39 | puts stdout $error |
| 40 | if {!$usage} then {exit 1} |
| 41 | } |
| 42 | |
| 43 | puts stdout "usage:\ |
| 44 | [file tail [info nameofexecutable]]\ |
| 45 | [file tail [info script]] \[vsixFile\]" |
| 46 | |
| 47 | exit 1 |
| 48 | } |
| 49 | |
mistachkin | 7856c1c | 2016-02-25 23:22:26 +0000 | [diff] [blame] | 50 | proc isWindows {} { |
| 51 | # |
| 52 | # NOTE: Returns non-zero only when running on Windows. |
| 53 | # |
| 54 | return [expr {[info exists ::tcl_platform(platform)] && \ |
| 55 | $::tcl_platform(platform) eq "windows"}] |
| 56 | } |
| 57 | |
| 58 | proc isAdministrator {} { |
| 59 | # |
| 60 | # NOTE: Returns non-zero only when running as "elevated administrator". |
| 61 | # |
| 62 | if {[isWindows]} then { |
| 63 | if {[catch {exec -- whoami /groups} groups] == 0} then { |
| 64 | set groups [string map [list \r\n \n] $groups] |
| 65 | |
| 66 | foreach group [split $groups \n] { |
| 67 | # |
| 68 | # NOTE: Match this group line against the "well-known" SID for |
| 69 | # the "Administrators" group on Windows. |
| 70 | # |
| 71 | if {[regexp -- {\sS-1-5-32-544\s} $group]} then { |
| 72 | # |
| 73 | # NOTE: Match this group line against the attributes column |
| 74 | # sub-value that should be present when running with |
| 75 | # elevated administrator credentials. |
| 76 | # |
| 77 | if {[regexp -- {\sEnabled group(?:,|\s)} $group]} then { |
| 78 | return true |
| 79 | } |
| 80 | } |
| 81 | } |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | return false |
| 86 | } |
| 87 | |
mistachkin | 7aa3ebe | 2016-02-24 21:42:03 +0000 | [diff] [blame] | 88 | proc getEnvironmentVariable { name } { |
| 89 | # |
| 90 | # NOTE: Returns the value of the specified environment variable or an empty |
| 91 | # string for environment variables that do not exist in the current |
| 92 | # process environment. |
| 93 | # |
| 94 | return [expr {[info exists ::env($name)] ? $::env($name) : ""}] |
| 95 | } |
| 96 | |
| 97 | proc getTemporaryPath {} { |
| 98 | # |
| 99 | # NOTE: Returns the normalized path to the first temporary directory found |
| 100 | # in the typical set of environment variables used for that purpose |
| 101 | # or an empty string to signal a failure to locate such a directory. |
| 102 | # |
| 103 | set names [list] |
| 104 | |
| 105 | foreach name [list TEMP TMP] { |
| 106 | lappend names [string toupper $name] [string tolower $name] \ |
| 107 | [string totitle $name] |
| 108 | } |
| 109 | |
| 110 | foreach name $names { |
| 111 | set value [getEnvironmentVariable $name] |
| 112 | |
| 113 | if {[string length $value] > 0} then { |
| 114 | return [file normalize $value] |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | return "" |
| 119 | } |
| 120 | |
| 121 | proc appendArgs { args } { |
| 122 | # |
mistachkin | 77b7e2a | 2016-02-25 08:02:16 +0000 | [diff] [blame] | 123 | # NOTE: Returns all passed arguments joined together as a single string |
| 124 | # with no intervening spaces between arguments. |
mistachkin | 7aa3ebe | 2016-02-24 21:42:03 +0000 | [diff] [blame] | 125 | # |
| 126 | eval append result $args |
| 127 | } |
| 128 | |
mistachkin | c32db46 | 2016-02-25 02:49:58 +0000 | [diff] [blame] | 129 | proc readFile { fileName } { |
| 130 | # |
| 131 | # NOTE: Reads and returns the entire contents of the specified file, which |
| 132 | # may contain binary data. |
| 133 | # |
| 134 | set file_id [open $fileName RDONLY] |
| 135 | fconfigure $file_id -encoding binary -translation binary |
| 136 | set result [read $file_id] |
| 137 | close $file_id |
| 138 | return $result |
| 139 | } |
| 140 | |
| 141 | proc writeFile { fileName data } { |
| 142 | # |
| 143 | # NOTE: Writes the entire contents of the specified file, which may contain |
| 144 | # binary data. |
| 145 | # |
| 146 | set file_id [open $fileName {WRONLY CREAT TRUNC}] |
| 147 | fconfigure $file_id -encoding binary -translation binary |
| 148 | puts -nonewline $file_id $data |
| 149 | close $file_id |
| 150 | return "" |
| 151 | } |
| 152 | |
| 153 | proc putsAndEval { command } { |
mistachkin | 77b7e2a | 2016-02-25 08:02:16 +0000 | [diff] [blame] | 154 | # |
| 155 | # NOTE: Outputs a command to the standard output channel and then evaluates |
| 156 | # it in the callers context. |
| 157 | # |
| 158 | catch { |
| 159 | puts stdout [appendArgs "Running: " [lrange $command 1 end] ...\n] |
| 160 | } |
| 161 | |
mistachkin | c32db46 | 2016-02-25 02:49:58 +0000 | [diff] [blame] | 162 | return [uplevel 1 $command] |
| 163 | } |
| 164 | |
mistachkin | 77b7e2a | 2016-02-25 08:02:16 +0000 | [diff] [blame] | 165 | proc isBadDirectory { directory } { |
| 166 | # |
| 167 | # NOTE: Returns non-zero if the directory is empty, does not exist, -OR- is |
| 168 | # not a directory. |
| 169 | # |
| 170 | catch { |
| 171 | puts stdout [appendArgs "Checking directory \"" $directory \"...\n] |
| 172 | } |
| 173 | |
| 174 | return [expr {[string length $directory] == 0 || \ |
| 175 | ![file exists $directory] || ![file isdirectory $directory]}] |
| 176 | } |
| 177 | |
| 178 | proc isBadFile { fileName } { |
| 179 | # |
| 180 | # NOTE: Returns non-zero if the file name is empty, does not exist, -OR- is |
| 181 | # not a regular file. |
| 182 | # |
| 183 | catch { |
| 184 | puts stdout [appendArgs "Checking file \"" $fileName \"...\n] |
| 185 | } |
| 186 | |
| 187 | return [expr {[string length $fileName] == 0 || \ |
| 188 | ![file exists $fileName] || ![file isfile $fileName]}] |
| 189 | } |
| 190 | |
mistachkin | 7aa3ebe | 2016-02-24 21:42:03 +0000 | [diff] [blame] | 191 | # |
| 192 | # NOTE: This is the entry point for this script. |
| 193 | # |
| 194 | set script [file normalize [info script]] |
| 195 | |
| 196 | if {[string length $script] == 0} then { |
| 197 | fail "script file currently being evaluated is unknown" true |
| 198 | } |
| 199 | |
mistachkin | 7856c1c | 2016-02-25 23:22:26 +0000 | [diff] [blame] | 200 | if {![isWindows]} then { |
| 201 | fail "this tool only works properly on Windows" |
| 202 | } |
| 203 | |
| 204 | if {![isAdministrator]} then { |
| 205 | fail "this tool must run with \"elevated administrator\" privileges" |
| 206 | } |
| 207 | |
mistachkin | 77b7e2a | 2016-02-25 08:02:16 +0000 | [diff] [blame] | 208 | set path [file normalize [file dirname $script]] |
| 209 | set argc [llength $argv]; if {$argc > 1} then {fail "" true} |
mistachkin | 7aa3ebe | 2016-02-24 21:42:03 +0000 | [diff] [blame] | 210 | |
| 211 | if {$argc == 1} then { |
mistachkin | c32db46 | 2016-02-25 02:49:58 +0000 | [diff] [blame] | 212 | set vsixFileName [lindex $argv 0] |
mistachkin | 7aa3ebe | 2016-02-24 21:42:03 +0000 | [diff] [blame] | 213 | } else { |
mistachkin | 77b7e2a | 2016-02-25 08:02:16 +0000 | [diff] [blame] | 214 | set vsixFileName [file join \ |
| 215 | [file dirname $path] sqlite-UWP-output.vsix] |
mistachkin | 7aa3ebe | 2016-02-24 21:42:03 +0000 | [diff] [blame] | 216 | } |
| 217 | |
mistachkin | 77b7e2a | 2016-02-25 08:02:16 +0000 | [diff] [blame] | 218 | ############################################################################### |
mistachkin | 7aa3ebe | 2016-02-24 21:42:03 +0000 | [diff] [blame] | 219 | |
mistachkin | 77b7e2a | 2016-02-25 08:02:16 +0000 | [diff] [blame] | 220 | if {[isBadFile $vsixFileName]} then { |
| 221 | fail [appendArgs \ |
| 222 | "VSIX file \"" $vsixFileName "\" does not exist"] |
mistachkin | c32db46 | 2016-02-25 02:49:58 +0000 | [diff] [blame] | 223 | } |
| 224 | |
| 225 | set versionFileName [file join [file dirname $path] VERSION] |
| 226 | |
mistachkin | 77b7e2a | 2016-02-25 08:02:16 +0000 | [diff] [blame] | 227 | if {[isBadFile $versionFileName]} then { |
| 228 | fail [appendArgs \ |
| 229 | "Version file \"" $versionFileName "\" does not exist"] |
mistachkin | c32db46 | 2016-02-25 02:49:58 +0000 | [diff] [blame] | 230 | } |
| 231 | |
| 232 | set projectTemplateFileName [file join $path vsixtest.vcxproj.data] |
mistachkin | c32db46 | 2016-02-25 02:49:58 +0000 | [diff] [blame] | 233 | |
mistachkin | 77b7e2a | 2016-02-25 08:02:16 +0000 | [diff] [blame] | 234 | if {[isBadFile $projectTemplateFileName]} then { |
mistachkin | c32db46 | 2016-02-25 02:49:58 +0000 | [diff] [blame] | 235 | fail [appendArgs \ |
mistachkin | 77b7e2a | 2016-02-25 08:02:16 +0000 | [diff] [blame] | 236 | "Project template file \"" $projectTemplateFileName \ |
| 237 | "\" does not exist"] |
mistachkin | 7aa3ebe | 2016-02-24 21:42:03 +0000 | [diff] [blame] | 238 | } |
| 239 | |
| 240 | set envVarName VS140COMNTOOLS |
| 241 | set vsDirectory [getEnvironmentVariable $envVarName] |
| 242 | |
mistachkin | 77b7e2a | 2016-02-25 08:02:16 +0000 | [diff] [blame] | 243 | if {[isBadDirectory $vsDirectory]} then { |
mistachkin | 7aa3ebe | 2016-02-24 21:42:03 +0000 | [diff] [blame] | 244 | fail [appendArgs \ |
| 245 | "Visual Studio 2015 directory \"" $vsDirectory \ |
mistachkin | 77b7e2a | 2016-02-25 08:02:16 +0000 | [diff] [blame] | 246 | "\" from environment variable \"" $envVarName \ |
mistachkin | 7aa3ebe | 2016-02-24 21:42:03 +0000 | [diff] [blame] | 247 | "\" does not exist"] |
| 248 | } |
| 249 | |
mistachkin | 77b7e2a | 2016-02-25 08:02:16 +0000 | [diff] [blame] | 250 | set vsixInstaller [file join \ |
| 251 | [file dirname $vsDirectory] IDE VSIXInstaller.exe] |
mistachkin | 7aa3ebe | 2016-02-24 21:42:03 +0000 | [diff] [blame] | 252 | |
mistachkin | 77b7e2a | 2016-02-25 08:02:16 +0000 | [diff] [blame] | 253 | if {[isBadFile $vsixInstaller]} then { |
mistachkin | 7aa3ebe | 2016-02-24 21:42:03 +0000 | [diff] [blame] | 254 | fail [appendArgs \ |
| 255 | "Visual Studio 2015 VSIX installer \"" $vsixInstaller \ |
| 256 | "\" does not exist"] |
| 257 | } |
| 258 | |
| 259 | set envVarName ProgramFiles |
| 260 | set programFiles [getEnvironmentVariable $envVarName] |
| 261 | |
mistachkin | 77b7e2a | 2016-02-25 08:02:16 +0000 | [diff] [blame] | 262 | if {[isBadDirectory $programFiles]} then { |
mistachkin | 7aa3ebe | 2016-02-24 21:42:03 +0000 | [diff] [blame] | 263 | fail [appendArgs \ |
mistachkin | 77b7e2a | 2016-02-25 08:02:16 +0000 | [diff] [blame] | 264 | "Program Files directory \"" $programFiles \ |
| 265 | "\" from environment variable \"" $envVarName \ |
| 266 | "\" does not exist"] |
mistachkin | 7aa3ebe | 2016-02-24 21:42:03 +0000 | [diff] [blame] | 267 | } |
| 268 | |
| 269 | set msBuild [file join $programFiles MSBuild 14.0 Bin MSBuild.exe] |
| 270 | |
mistachkin | 77b7e2a | 2016-02-25 08:02:16 +0000 | [diff] [blame] | 271 | if {[isBadFile $msBuild]} then { |
mistachkin | 7aa3ebe | 2016-02-24 21:42:03 +0000 | [diff] [blame] | 272 | fail [appendArgs \ |
mistachkin | 77b7e2a | 2016-02-25 08:02:16 +0000 | [diff] [blame] | 273 | "MSBuild v14.0 executable file \"" $msBuild \ |
| 274 | "\" does not exist"] |
mistachkin | 7aa3ebe | 2016-02-24 21:42:03 +0000 | [diff] [blame] | 275 | } |
| 276 | |
| 277 | set temporaryDirectory [getTemporaryPath] |
| 278 | |
mistachkin | 77b7e2a | 2016-02-25 08:02:16 +0000 | [diff] [blame] | 279 | if {[isBadDirectory $temporaryDirectory]} then { |
| 280 | fail [appendArgs \ |
| 281 | "Temporary directory \"" $temporaryDirectory \ |
| 282 | "\" does not exist"] |
mistachkin | 7aa3ebe | 2016-02-24 21:42:03 +0000 | [diff] [blame] | 283 | } |
| 284 | |
mistachkin | 77b7e2a | 2016-02-25 08:02:16 +0000 | [diff] [blame] | 285 | ############################################################################### |
| 286 | |
mistachkin | 7aa3ebe | 2016-02-24 21:42:03 +0000 | [diff] [blame] | 287 | set installLogFileName [appendArgs \ |
mistachkin | 77b7e2a | 2016-02-25 08:02:16 +0000 | [diff] [blame] | 288 | [file rootname [file tail $vsixFileName]] \ |
| 289 | -install- [pid] .log] |
| 290 | |
| 291 | set commands(1) [list exec [file nativename $vsixInstaller]] |
| 292 | |
| 293 | lappend commands(1) /quiet /norepair |
| 294 | lappend commands(1) [appendArgs /logFile: $installLogFileName] |
| 295 | lappend commands(1) [file nativename $vsixFileName] |
| 296 | |
| 297 | ############################################################################### |
mistachkin | 7aa3ebe | 2016-02-24 21:42:03 +0000 | [diff] [blame] | 298 | |
| 299 | set buildLogFileName [appendArgs \ |
mistachkin | c32db46 | 2016-02-25 02:49:58 +0000 | [diff] [blame] | 300 | [file rootname [file tail $vsixFileName]] \ |
mistachkin | 78007b2 | 2016-02-24 23:25:23 +0000 | [diff] [blame] | 301 | -build-%configuration%-%platform%- [pid] .log] |
mistachkin | 7aa3ebe | 2016-02-24 21:42:03 +0000 | [diff] [blame] | 302 | |
mistachkin | 78007b2 | 2016-02-24 23:25:23 +0000 | [diff] [blame] | 303 | set commands(2) [list exec [file nativename $msBuild]] |
mistachkin | 77b7e2a | 2016-02-25 08:02:16 +0000 | [diff] [blame] | 304 | |
mistachkin | 78007b2 | 2016-02-24 23:25:23 +0000 | [diff] [blame] | 305 | lappend commands(2) [file nativename [file join $path vsixtest.sln]] |
| 306 | lappend commands(2) /target:Rebuild |
| 307 | lappend commands(2) /property:Configuration=%configuration% |
mistachkin | 5dad68d | 2016-02-24 23:31:14 +0000 | [diff] [blame] | 308 | lappend commands(2) /property:Platform=%platform% |
mistachkin | 7aa3ebe | 2016-02-24 21:42:03 +0000 | [diff] [blame] | 309 | |
mistachkin | 78007b2 | 2016-02-24 23:25:23 +0000 | [diff] [blame] | 310 | lappend commands(2) [appendArgs \ |
mistachkin | 7aa3ebe | 2016-02-24 21:42:03 +0000 | [diff] [blame] | 311 | /logger:FileLogger,Microsoft.Build.Engine\;Logfile= \ |
mistachkin | 77b7e2a | 2016-02-25 08:02:16 +0000 | [diff] [blame] | 312 | [file nativename [file join $temporaryDirectory \ |
| 313 | $buildLogFileName]] \;Verbosity=diagnostic] |
mistachkin | 7aa3ebe | 2016-02-24 21:42:03 +0000 | [diff] [blame] | 314 | |
mistachkin | 77b7e2a | 2016-02-25 08:02:16 +0000 | [diff] [blame] | 315 | ############################################################################### |
| 316 | |
| 317 | set uninstallLogFileName [appendArgs \ |
| 318 | [file rootname [file tail $vsixFileName]] \ |
| 319 | -uninstall- [pid] .log] |
| 320 | |
| 321 | set commands(3) [list exec [file nativename $vsixInstaller]] |
| 322 | |
| 323 | lappend commands(3) /quiet /norepair |
mistachkin | 78007b2 | 2016-02-24 23:25:23 +0000 | [diff] [blame] | 324 | lappend commands(3) [appendArgs /logFile: $uninstallLogFileName] |
| 325 | lappend commands(3) [appendArgs /uninstall:SQLite.UWP.2015] |
mistachkin | 7aa3ebe | 2016-02-24 21:42:03 +0000 | [diff] [blame] | 326 | |
mistachkin | c32db46 | 2016-02-25 02:49:58 +0000 | [diff] [blame] | 327 | ############################################################################### |
mistachkin | 7aa3ebe | 2016-02-24 21:42:03 +0000 | [diff] [blame] | 328 | |
mistachkin | 5dad68d | 2016-02-24 23:31:14 +0000 | [diff] [blame] | 329 | if {1} then { |
mistachkin | 77b7e2a | 2016-02-25 08:02:16 +0000 | [diff] [blame] | 330 | catch { |
| 331 | puts stdout [appendArgs \ |
| 332 | "Install log: \"" [file nativename [file join \ |
| 333 | $temporaryDirectory $installLogFileName]] \"\n] |
| 334 | } |
mistachkin | 78007b2 | 2016-02-24 23:25:23 +0000 | [diff] [blame] | 335 | |
mistachkin | 77b7e2a | 2016-02-25 08:02:16 +0000 | [diff] [blame] | 336 | catch { |
| 337 | puts stdout [appendArgs \ |
| 338 | "Build logs: \"" [file nativename [file join \ |
| 339 | $temporaryDirectory $buildLogFileName]] \"\n] |
| 340 | } |
mistachkin | c32db46 | 2016-02-25 02:49:58 +0000 | [diff] [blame] | 341 | |
mistachkin | 77b7e2a | 2016-02-25 08:02:16 +0000 | [diff] [blame] | 342 | catch { |
| 343 | puts stdout [appendArgs \ |
| 344 | "Uninstall log: \"" [file nativename [file join \ |
| 345 | $temporaryDirectory $uninstallLogFileName]] \"\n] |
| 346 | } |
mistachkin | c32db46 | 2016-02-25 02:49:58 +0000 | [diff] [blame] | 347 | } |
| 348 | |
| 349 | ############################################################################### |
| 350 | |
| 351 | if {1} then { |
mistachkin | 6ae4d84 | 2016-02-25 02:56:53 +0000 | [diff] [blame] | 352 | putsAndEval $commands(1) |
mistachkin | c32db46 | 2016-02-25 02:49:58 +0000 | [diff] [blame] | 353 | |
| 354 | set versionNumber [string trim [readFile $versionFileName]] |
| 355 | set data [readFile $projectTemplateFileName] |
| 356 | set data [string map [list %versionNumber% $versionNumber] $data] |
mistachkin | 77b7e2a | 2016-02-25 08:02:16 +0000 | [diff] [blame] | 357 | |
| 358 | set projectFileName [file join $path vsixtest.vcxproj] |
mistachkin | c32db46 | 2016-02-25 02:49:58 +0000 | [diff] [blame] | 359 | writeFile $projectFileName $data |
| 360 | |
| 361 | set platforms [list x86 x64 ARM] |
mistachkin | 78007b2 | 2016-02-24 23:25:23 +0000 | [diff] [blame] | 362 | set configurations [list Debug Release] |
| 363 | |
| 364 | foreach platform $platforms { |
| 365 | foreach configuration $configurations { |
mistachkin | c32db46 | 2016-02-25 02:49:58 +0000 | [diff] [blame] | 366 | putsAndEval [string map [list \ |
mistachkin | 77b7e2a | 2016-02-25 08:02:16 +0000 | [diff] [blame] | 367 | %platform% $platform %configuration% $configuration] \ |
| 368 | $commands(2)] |
mistachkin | 78007b2 | 2016-02-24 23:25:23 +0000 | [diff] [blame] | 369 | } |
| 370 | } |
| 371 | |
mistachkin | 6ae4d84 | 2016-02-25 02:56:53 +0000 | [diff] [blame] | 372 | putsAndEval $commands(3) |
mistachkin | 78007b2 | 2016-02-24 23:25:23 +0000 | [diff] [blame] | 373 | } |