libv8 5.7.492.65.1 → 5.9.211.38.0beta0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +8 -2
- data/CHANGELOG.md +4 -0
- data/README.md +4 -3
- data/Rakefile +27 -10
- data/ext/libv8/builder.rb +4 -0
- data/lib/libv8/version.rb +1 -1
- data/libv8.gemspec +1 -1
- data/patches/0001-Build-a-standalone-static-library.patch +5 -5
- data/patches/0002-Don-t-compile-unnecessary-stuff.patch +20 -24
- data/patches/0003-Use-the-fPIC-flag-for-the-static-library.patch +5 -5
- data/patches/0004-Do-not-embed-debug-symbols-in-macOS-libraries.patch +5 -5
- data/patches/0005-Fix-GCC-7-build-errors.patch +147 -0
- data/scaleway.png +0 -0
- data/vendor/depot_tools/.gitattributes +52 -0
- data/vendor/depot_tools/.gitignore +10 -0
- data/vendor/depot_tools/README.md +7 -3
- data/vendor/depot_tools/apply_issue.bat +4 -3
- data/vendor/depot_tools/apply_issue.py +0 -10
- data/vendor/depot_tools/autoninja +12 -0
- data/vendor/depot_tools/autoninja.bat +9 -0
- data/vendor/depot_tools/autoninja.py +70 -0
- data/vendor/depot_tools/bootstrap/win/README.md +108 -26
- data/vendor/depot_tools/bootstrap/win/git-bash.template.sh +3 -3
- data/vendor/depot_tools/bootstrap/win/git.template.bat +2 -2
- data/vendor/depot_tools/bootstrap/win/manifest.txt +18 -0
- data/vendor/depot_tools/bootstrap/win/manifest_bleeding_edge.txt +18 -0
- data/vendor/depot_tools/bootstrap/win/python27.new.bat +49 -0
- data/vendor/depot_tools/bootstrap/win/win_tools.bat +55 -59
- data/vendor/depot_tools/bootstrap/win/win_tools.py +335 -0
- data/vendor/depot_tools/cipd +16 -2
- data/vendor/depot_tools/cipd.bat +20 -2
- data/vendor/depot_tools/cipd.ps1 +36 -22
- data/vendor/depot_tools/cipd_bin_setup.bat +6 -0
- data/vendor/depot_tools/cipd_bin_setup.sh +10 -0
- data/vendor/depot_tools/cipd_client_version +1 -1
- data/vendor/depot_tools/cipd_manifest.txt +9 -0
- data/vendor/depot_tools/cit.bat +12 -11
- data/vendor/depot_tools/clang-format.bat +4 -3
- data/vendor/depot_tools/clang_format_merge_driver.bat +12 -11
- data/vendor/depot_tools/commit_queue.bat +4 -3
- data/vendor/depot_tools/cpplint.bat +9 -3
- data/vendor/depot_tools/cpplint.py +3 -3
- data/vendor/depot_tools/depot-tools-auth.bat +4 -3
- data/vendor/depot_tools/download_from_google_storage.bat +5 -3
- data/vendor/depot_tools/download_from_google_storage.py +6 -1
- data/vendor/depot_tools/fetch.bat +5 -4
- data/vendor/depot_tools/fetch.py +4 -5
- data/vendor/depot_tools/gclient-new-workdir.py +82 -46
- data/vendor/depot_tools/gclient.bat +5 -4
- data/vendor/depot_tools/gclient.py +713 -319
- data/vendor/depot_tools/gclient_eval.py +284 -0
- data/vendor/depot_tools/gclient_utils.py +70 -4
- data/vendor/depot_tools/gerrit_client.py +26 -1
- data/vendor/depot_tools/gerrit_util.py +120 -127
- data/vendor/depot_tools/git-crrev-parse +1 -0
- data/vendor/depot_tools/git-gs +1 -1
- data/vendor/depot_tools/git_cl.py +731 -415
- data/vendor/depot_tools/git_common.py +23 -3
- data/vendor/depot_tools/git_drover.py +10 -1
- data/vendor/depot_tools/git_footers.py +62 -22
- data/vendor/depot_tools/git_hyper_blame.py +3 -2
- data/vendor/depot_tools/git_map.py +30 -3
- data/vendor/depot_tools/git_map_branches.py +18 -4
- data/vendor/depot_tools/git_number.py +8 -2
- data/vendor/depot_tools/git_retry.py +21 -0
- data/vendor/depot_tools/gn.bat +4 -3
- data/vendor/depot_tools/infra/config/cq.cfg +1 -5
- data/vendor/depot_tools/infra/config/recipes.cfg +18 -16
- data/vendor/depot_tools/led +12 -0
- data/vendor/depot_tools/led.bat +7 -0
- data/vendor/depot_tools/man/html/git-cl.html +9 -1
- data/vendor/depot_tools/man/html/git-drover.html +22 -18
- data/vendor/depot_tools/man/man1/git-cl.1 +8 -3
- data/vendor/depot_tools/man/man1/git-drover.1 +22 -20
- data/vendor/depot_tools/man/src/git-cl.txt +3 -0
- data/vendor/depot_tools/man/src/git-drover.txt +8 -0
- data/vendor/depot_tools/my_activity.py +8 -5
- data/vendor/depot_tools/owners.py +103 -11
- data/vendor/depot_tools/owners_finder.py +14 -2
- data/vendor/depot_tools/presubmit_canned_checks.py +25 -67
- data/vendor/depot_tools/presubmit_support.py +87 -35
- data/vendor/depot_tools/recipes/OWNERS +2 -0
- data/vendor/depot_tools/recipes/README.recipes.md +842 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/__init__.py +5 -3
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/api.py +181 -60
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/{example.expected → examples/full.expected}/apply_gerrit_ref.json +4 -2
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/basic.json +82 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/basic_with_branch_heads.json +149 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/buildbot.json +82 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/clobber.json +149 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/deprecated_got_revision_mapping.json +122 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/gerrit_no_rebase_patch_ref.json +149 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/gerrit_no_reset.json +149 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/no_shallow.json +149 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/reset_root_solution_revision.json +148 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/trychange.json +150 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/{example.expected → examples/full.expected}/trychange_oauth2.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/trychange_oauth2_buildbot.json +152 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/trychange_oauth2_json.json +150 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/trychange_oauth2_json_win.json +150 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob.json +156 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail.json +91 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail_patch.json +118 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail_patch_download.json +118 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_angle.json +202 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_angle_deprecated.json +158 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_feature_branch.json +196 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_v8.json +202 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_v8_feature_branch.json +202 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_v8.json +162 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_v8_head_by_default.json +162 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/with_tags.json +149 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/{example.py → examples/full.py} +46 -8
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/resources/bot_update.py +139 -133
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/test_api.py +25 -13
- data/vendor/depot_tools/recipes/recipe_modules/cipd/api.py +40 -9
- data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/basic.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/basic_pkg.json +1 -1
- data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/describe-failed.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/describe-many-instances.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/mac64.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/pkg_bad_file.json +1 -1
- data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/pkg_bad_mode.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/pkg_bad_verfile.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/win64.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.py → examples/full.py} +1 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/junk arch.json +7 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/junk bits.json +7 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/linux_arm_32.json +14 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/linux_arm_64.json +14 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/linux_intel_32.json +14 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/linux_intel_64.json +14 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/linux_mips_64.json +14 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/mac_intel_64.json +14 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/win_intel_32.json +14 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/win_intel_64.json +14 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.py +59 -0
- data/vendor/depot_tools/recipes/recipe_modules/depot_tools/api.py +5 -0
- data/vendor/depot_tools/recipes/recipe_modules/depot_tools/{example.expected → examples/full.expected}/basic.json +7 -0
- data/vendor/depot_tools/recipes/recipe_modules/depot_tools/{example.expected → examples/full.expected}/win.json +7 -0
- data/vendor/depot_tools/recipes/recipe_modules/depot_tools/{example.py → examples/full.py} +2 -0
- data/vendor/depot_tools/recipes/recipe_modules/gclient/__init__.py +1 -4
- data/vendor/depot_tools/recipes/recipe_modules/gclient/api.py +28 -14
- data/vendor/depot_tools/recipes/recipe_modules/gclient/config.py +10 -235
- data/vendor/depot_tools/recipes/recipe_modules/gclient/{example.expected → examples/full.expected}/basic.json +9 -9
- data/vendor/depot_tools/recipes/recipe_modules/gclient/{example.expected → examples/full.expected}/buildbot.json +9 -9
- data/vendor/depot_tools/recipes/recipe_modules/gclient/{example.expected → examples/full.expected}/revision.json +9 -9
- data/vendor/depot_tools/recipes/recipe_modules/gclient/{example.expected → examples/full.expected}/tryserver.json +9 -9
- data/vendor/depot_tools/recipes/recipe_modules/gclient/{example.py → examples/full.py} +5 -21
- data/vendor/depot_tools/recipes/recipe_modules/gclient/tests/patch_project.py +45 -0
- data/vendor/depot_tools/recipes/recipe_modules/gerrit/__init__.py +1 -0
- data/vendor/depot_tools/recipes/recipe_modules/gerrit/api.py +97 -2
- data/vendor/depot_tools/recipes/recipe_modules/gerrit/examples/full.expected/basic.json +283 -0
- data/vendor/depot_tools/recipes/recipe_modules/gerrit/{example.py → examples/full.py} +31 -2
- data/vendor/depot_tools/recipes/recipe_modules/gerrit/test_api.py +30 -1
- data/vendor/depot_tools/recipes/recipe_modules/git/__init__.py +1 -4
- data/vendor/depot_tools/recipes/recipe_modules/git/api.py +7 -35
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/basic.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/basic_branch.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/basic_file_name.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/basic_hash.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/basic_ref.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/basic_submodule_update_force.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/can_fail_build.json +1 -1
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/cannot_fail_build.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/cat-file_test.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/count-objects_delta.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/count-objects_failed.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/count-objects_with_bad_output.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/count-objects_with_bad_output_fails_build.json +1 -1
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/curl_trace_file.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/git-cache-checkout.json +6 -6
- data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/platform_win.json +223 -0
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/rebase_failed.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/remote_not_origin.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/set_got_revision.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.py → examples/full.py} +2 -1
- data/vendor/depot_tools/recipes/recipe_modules/git/resources/git_setup.py +12 -21
- data/vendor/depot_tools/recipes/recipe_modules/git_cl/__init__.py +1 -4
- data/vendor/depot_tools/recipes/recipe_modules/git_cl/api.py +13 -11
- data/vendor/depot_tools/recipes/recipe_modules/git_cl/{example.expected → examples/full.expected}/basic.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/git_cl/{example.py → examples/full.py} +4 -2
- data/vendor/depot_tools/recipes/recipe_modules/gitiles/OWNERS +3 -0
- data/vendor/depot_tools/recipes/recipe_modules/gitiles/__init__.py +7 -0
- data/vendor/depot_tools/recipes/recipe_modules/gitiles/api.py +135 -0
- data/vendor/depot_tools/recipes/recipe_modules/gitiles/examples/full.expected/basic.json +537 -0
- data/vendor/depot_tools/recipes/recipe_modules/gitiles/examples/full.py +61 -0
- data/vendor/depot_tools/recipes/recipe_modules/gitiles/resources/gerrit_client.py +192 -0
- data/vendor/depot_tools/recipes/recipe_modules/gitiles/test_api.py +95 -0
- data/vendor/depot_tools/recipes/recipe_modules/gsutil/{example.expected → examples/full.expected}/basic.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/gsutil/{example.py → examples/full.py} +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/__init__.py +0 -3
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/{example.expected → examples/full.expected}/basic.json +3 -2
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/{example.expected → examples/full.expected}/paths_buildbot_linux.json +3 -2
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/{example.expected → examples/full.expected}/paths_buildbot_mac.json +3 -2
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/{example.expected → examples/full.expected}/paths_buildbot_win.json +3 -2
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/{example.expected → examples/full.expected}/paths_generic_linux.json +3 -2
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/{example.expected → examples/full.expected}/paths_generic_mac.json +3 -2
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/examples/full.expected/paths_generic_win.json +16 -0
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/examples/full.expected/paths_kitchen_linux.json +16 -0
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/examples/full.expected/paths_kitchen_mac.json +16 -0
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/examples/full.expected/paths_kitchen_win.json +16 -0
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/{example.py → examples/full.py} +2 -1
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/path_config.py +12 -3
- data/vendor/depot_tools/recipes/recipe_modules/presubmit/__init__.py +1 -0
- data/vendor/depot_tools/recipes/recipe_modules/presubmit/api.py +2 -2
- data/vendor/depot_tools/recipes/recipe_modules/presubmit/{example.expected → examples/full.expected}/basic.json +1 -1
- data/vendor/depot_tools/recipes/recipe_modules/presubmit/{example.py → examples/full.py} +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/rietveld/__init__.py +0 -4
- data/vendor/depot_tools/recipes/recipe_modules/rietveld/{example.expected → examples/full.expected}/basic.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/rietveld/{example.expected → examples/full.expected}/buildbot.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/rietveld/examples/full.expected/no_auth.json +27 -0
- data/vendor/depot_tools/recipes/recipe_modules/rietveld/{example.py → examples/full.py} +9 -1
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/__init__.py +3 -5
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/api.py +21 -96
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected → examples/full.expected}/basic_tags.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected → examples/full.expected}/set_failure_hash_with_no_steps.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_gerrit_patch.json +56 -0
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected/with_gerrit_patch_deprecated.json → examples/full.expected/with_git_patch.json} +2 -2
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected/with_gerrit_patch.json → examples/full.expected/with_git_patch_luci.json} +2 -2
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected → examples/full.expected}/with_rietveld_patch.json +0 -20
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected → examples/full.expected}/with_rietveld_patch_new.json +0 -20
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected → examples/full.expected}/with_wrong_patch.json +1 -13
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected → examples/full.expected}/with_wrong_patch_new.json +1 -13
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.py → examples/full.py} +3 -17
- data/vendor/depot_tools/recipes/recipes.py +141 -96
- data/vendor/depot_tools/rietveld.py +8 -1
- data/vendor/depot_tools/roll-dep-svn.bat +12 -10
- data/vendor/depot_tools/roll-dep.bat +5 -3
- data/vendor/depot_tools/scm.py +8 -1
- data/vendor/depot_tools/setup_color.py +0 -0
- data/vendor/depot_tools/split_cl.py +193 -0
- data/vendor/depot_tools/third_party/schema/.editorconfig +15 -0
- data/vendor/depot_tools/third_party/schema/.gitignore +174 -0
- data/vendor/depot_tools/third_party/schema/.travis.yml +37 -0
- data/vendor/depot_tools/third_party/schema/LICENSE-MIT +19 -0
- data/vendor/depot_tools/third_party/schema/MANIFEST.in +1 -0
- data/vendor/depot_tools/third_party/schema/README.chromium +12 -0
- data/vendor/depot_tools/third_party/schema/README.rst +382 -0
- data/vendor/depot_tools/third_party/schema/__init__.py +1 -0
- data/vendor/depot_tools/third_party/schema/schema.py +338 -0
- data/vendor/depot_tools/third_party/schema/setup.cfg +5 -0
- data/vendor/depot_tools/third_party/schema/setup.py +30 -0
- data/vendor/depot_tools/third_party/schema/test_schema.py +556 -0
- data/vendor/depot_tools/third_party/schema/tox.ini +33 -0
- data/vendor/depot_tools/third_party/upload.py +4 -0
- data/vendor/depot_tools/update_depot_tools +4 -16
- data/vendor/depot_tools/update_depot_tools.bat +4 -17
- data/vendor/depot_tools/update_depot_tools_toggle.py +38 -0
- data/vendor/depot_tools/vpython +12 -0
- data/vendor/depot_tools/vpython.bat +7 -0
- data/vendor/depot_tools/win_toolchain/get_toolchain_if_necessary.py +17 -5
- data/vendor/depot_tools/win_toolchain/package_from_installed.py +63 -33
- metadata +161 -113
- data/vendor/depot_tools/bootstrap/gclient.bat +0 -22
- data/vendor/depot_tools/bootstrap/win/get_file.js +0 -119
- data/vendor/depot_tools/bootstrap/win/git_bootstrap.py +0 -193
- data/vendor/depot_tools/bootstrap/win/git_version.txt +0 -1
- data/vendor/depot_tools/bootstrap/win/git_version_bleeding_edge.txt +0 -1
- data/vendor/depot_tools/bootstrap/win/python276.new.bat +0 -8
- data/vendor/depot_tools/bootstrap/win/svn.new.bat +0 -4
- data/vendor/depot_tools/bootstrap/win/svnversion.new.bat +0 -4
- data/vendor/depot_tools/bootstrap/win/unzip.js +0 -91
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/basic.json +0 -53
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/basic_output_manifest.json +0 -60
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/basic_with_branch_heads.json +0 -54
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/buildbot.json +0 -53
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/clobber.json +0 -54
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/gerrit_no_rebase_patch_ref.json +0 -54
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/gerrit_no_reset.json +0 -54
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/no_shallow.json +0 -54
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/reset_root_solution_revision.json +0 -53
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/trychange.json +0 -55
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/trychange_oauth2_buildbot.json +0 -57
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/trychange_oauth2_json.json +0 -55
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/trychange_oauth2_json_win.json +0 -55
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob.json +0 -59
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob_fail.json +0 -62
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob_fail_patch.json +0 -83
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob_fail_patch_download.json +0 -84
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob_gerrit_angle.json +0 -60
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob_gerrit_angle_deprecated.json +0 -60
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob_v8.json +0 -62
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob_v8_head_by_default.json +0 -62
- data/vendor/depot_tools/recipes/recipe_modules/gclient/bundle_extra_paths.txt +0 -4
- data/vendor/depot_tools/recipes/recipe_modules/gerrit/example.expected/basic.json +0 -66
- data/vendor/depot_tools/recipes/recipe_modules/git/bundle_extra_paths.txt +0 -28
- data/vendor/depot_tools/recipes/recipe_modules/git/example.expected/platform_win.json +0 -237
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_generic_win.json +0 -15
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_kitchen_linux.json +0 -15
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_kitchen_mac.json +0 -15
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_kitchen_win.json +0 -15
- data/vendor/depot_tools/recipes/recipe_modules/presubmit/bundle_extra_paths.txt +0 -30
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/example.expected/with_git_patch.json +0 -109
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/example.expected/with_git_patch_luci.json +0 -8
@@ -1,22 +0,0 @@
|
|
1
|
-
@echo off
|
2
|
-
:: Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
3
|
-
:: Use of this source code is governed by a BSD-style license that can be
|
4
|
-
:: found in the LICENSE file.
|
5
|
-
|
6
|
-
:: IMPORTANT NOTE:
|
7
|
-
:: The bootstrap flow has been removed. This file's only purpose is to make the
|
8
|
-
:: transition smooth as the previous update script called bootstrap\gclient.bat
|
9
|
-
:: The current flow took place on March 21, 2012. This file should be removed
|
10
|
-
:: when it is believed everyone has updated since then.
|
11
|
-
|
12
|
-
:: At this point we know %DEPOT_TOOLS_UPDATE% != 0 as in the previous script
|
13
|
-
:: bootstrap\gclient.bat was only called if this was the case.
|
14
|
-
|
15
|
-
:: Update the root directory. The previous version only supported svn so there
|
16
|
-
:: is no need looking for git here (i.e. if someone has git they can't get to
|
17
|
-
:: this point where the bootstrap dir is gone during the update anyways...)
|
18
|
-
IF NOT EXIST "%~dp0..\.svn\." GOTO :EOF
|
19
|
-
call svn up -q "%~dp0.."
|
20
|
-
|
21
|
-
:: Call the updated gclient.bat in the root directory to wrap the update.
|
22
|
-
call "%~dp0..\gclient.bat"
|
@@ -1,119 +0,0 @@
|
|
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
|
3
|
-
// found in the LICENSE file.
|
4
|
-
|
5
|
-
function Download(url, path, verbose) {
|
6
|
-
if (verbose) {
|
7
|
-
WScript.StdOut.Write(" * GET " + url + "...");
|
8
|
-
}
|
9
|
-
try {
|
10
|
-
xml_http = new ActiveXObject("MSXML2.ServerXMLHTTP");
|
11
|
-
} catch (e) {
|
12
|
-
WScript.StdOut.WriteLine("[-] XMLHTTP " + new Number(e.number).toHex() +
|
13
|
-
": Cannot create Active-X object (" + e.description) + ").";
|
14
|
-
WScript.Quit(1);
|
15
|
-
}
|
16
|
-
try {
|
17
|
-
xml_http.open("GET", url, false);
|
18
|
-
} catch (e) {
|
19
|
-
WScript.StdOut.WriteLine("[-] XMLHTTP " + new Number(e.number).toHex() +
|
20
|
-
": invalid URL.");
|
21
|
-
WScript.Quit(1);
|
22
|
-
}
|
23
|
-
|
24
|
-
var response_body = null;
|
25
|
-
var size_description = "?";
|
26
|
-
var file_size;
|
27
|
-
try {
|
28
|
-
xml_http.send(null);
|
29
|
-
if (xml_http.status != 200) {
|
30
|
-
WScript.StdOut.WriteLine("[-] HTTP " + xml_http.status + " " +
|
31
|
-
xml_http.statusText);
|
32
|
-
WScript.Quit(1);
|
33
|
-
}
|
34
|
-
response_body = xml_http.responseBody;
|
35
|
-
size_description = xml_http.getResponseHeader("Content-Length");
|
36
|
-
if (size_description != "") {
|
37
|
-
file_size = parseInt(size_description)
|
38
|
-
size_description = file_size.toBytes();
|
39
|
-
} else {
|
40
|
-
try {
|
41
|
-
file_size = new Number(xml_http.responseText.length)
|
42
|
-
size_description = file_size.toBytes();
|
43
|
-
} catch(e) {
|
44
|
-
size_description = "unknown size";
|
45
|
-
}
|
46
|
-
}
|
47
|
-
} catch (e) {
|
48
|
-
WScript.StdOut.WriteLine("[-] XMLHTTP " + new Number(e.number).toHex() +
|
49
|
-
": Cannot make HTTP request (" + e.description) + ")";
|
50
|
-
WScript.Quit(1);
|
51
|
-
}
|
52
|
-
|
53
|
-
if (verbose) {
|
54
|
-
WScript.StdOut.WriteLine("ok (" + size_description + ").");
|
55
|
-
WScript.StdOut.Write(" * Save " + path + "...");
|
56
|
-
}
|
57
|
-
|
58
|
-
try {
|
59
|
-
var adodb_stream = new ActiveXObject("ADODB.Stream");
|
60
|
-
adodb_stream.Mode = 3; // ReadWrite
|
61
|
-
adodb_stream.Type = 1; // 1= Binary
|
62
|
-
adodb_stream.Open(); // Open the stream
|
63
|
-
adodb_stream.Write(response_body); // Write the data
|
64
|
-
adodb_stream.SaveToFile(path, 2); // Save to our destination
|
65
|
-
adodb_stream.Close();
|
66
|
-
} catch(e) {
|
67
|
-
WScript.StdOut.WriteLine(
|
68
|
-
"[-] ADODB.Stream " + new Number(e.number).toHex() +
|
69
|
-
": Cannot save file to " + path + ": " + e.description);
|
70
|
-
WScript.Quit(1);
|
71
|
-
}
|
72
|
-
if (typeof(file_size) != undefined) {
|
73
|
-
var file_system_object = WScript.CreateObject("Scripting.FileSystemObject")
|
74
|
-
var file = file_system_object.GetFile(path)
|
75
|
-
if (file.Size < file_size) {
|
76
|
-
WScript.StdOut.WriteLine("[-] File only partially downloaded.");
|
77
|
-
WScript.Quit(1);
|
78
|
-
}
|
79
|
-
}
|
80
|
-
if (verbose) {
|
81
|
-
WScript.StdOut.WriteLine("ok.");
|
82
|
-
}
|
83
|
-
}
|
84
|
-
|
85
|
-
// Utilities
|
86
|
-
Number.prototype.isInt = function NumberIsInt() {
|
87
|
-
return this % 1 == 0;
|
88
|
-
};
|
89
|
-
Number.prototype.toBytes = function NumberToBytes() {
|
90
|
-
// Returns a "pretty" string representation of a number of bytes:
|
91
|
-
var units = ["KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
|
92
|
-
var unit = "bytes";
|
93
|
-
var limit = 1;
|
94
|
-
while(this > limit * 1100 && units.length > 0) {
|
95
|
-
limit *= 1024;
|
96
|
-
unit = units.shift();
|
97
|
-
}
|
98
|
-
return (Math.round(this * 100 / limit) / 100).toString() + " " + unit;
|
99
|
-
};
|
100
|
-
Number.prototype.toHex = function NumberToHex(length) {
|
101
|
-
if (arguments.length == 0) length = 1;
|
102
|
-
if (typeof(length) != "number" && !(length instanceof Number)) {
|
103
|
-
throw Exception("Length must be a positive integer larger than 0.",
|
104
|
-
TypeError, 0);
|
105
|
-
}
|
106
|
-
if (length < 1 || !length.isInt()) {
|
107
|
-
throw Exception("Length must be a positive integer larger than 0.",
|
108
|
-
"RangeError", 0);
|
109
|
-
}
|
110
|
-
var result = (this + (this < 0 ? 0x100000000 : 0)).toString(16);
|
111
|
-
while (result.length < length) result = "0" + result;
|
112
|
-
return result;
|
113
|
-
};
|
114
|
-
|
115
|
-
if (WScript.Arguments.length != 2) {
|
116
|
-
WScript.StdOut.Write("Incorrect arguments to get_file.js")
|
117
|
-
} else {
|
118
|
-
Download(WScript.Arguments(0), WScript.Arguments(1), false);
|
119
|
-
}
|
@@ -1,193 +0,0 @@
|
|
1
|
-
# Copyright 2016 The Chromium Authors. All rights reserved.
|
2
|
-
# Use of this source code is governed by a BSD-style license that can be
|
3
|
-
# found in the LICENSE file.
|
4
|
-
|
5
|
-
import argparse
|
6
|
-
import fnmatch
|
7
|
-
import logging
|
8
|
-
import os
|
9
|
-
import shutil
|
10
|
-
import subprocess
|
11
|
-
import sys
|
12
|
-
import tempfile
|
13
|
-
|
14
|
-
|
15
|
-
THIS_DIR = os.path.abspath(os.path.dirname(__file__))
|
16
|
-
ROOT_DIR = os.path.abspath(os.path.join(THIS_DIR, '..', '..'))
|
17
|
-
|
18
|
-
DEVNULL = open(os.devnull, 'w')
|
19
|
-
|
20
|
-
BAT_EXT = '.bat' if sys.platform.startswith('win') else ''
|
21
|
-
|
22
|
-
|
23
|
-
def _check_call(argv, **kwargs):
|
24
|
-
"""Wrapper for subprocess.check_call that adds logging."""
|
25
|
-
logging.info('running %r', argv)
|
26
|
-
subprocess.check_call(argv, **kwargs)
|
27
|
-
|
28
|
-
|
29
|
-
def get_target_git_version():
|
30
|
-
"""Returns git version that should be installed."""
|
31
|
-
if os.path.exists(os.path.join(ROOT_DIR, '.git_bleeding_edge')):
|
32
|
-
git_version_file = 'git_version_bleeding_edge.txt'
|
33
|
-
else:
|
34
|
-
git_version_file = 'git_version.txt'
|
35
|
-
with open(os.path.join(THIS_DIR, git_version_file)) as f:
|
36
|
-
return f.read().strip()
|
37
|
-
|
38
|
-
|
39
|
-
def clean_up_old_git_installations(git_directory):
|
40
|
-
"""Removes git installations other than |git_directory|."""
|
41
|
-
for entry in fnmatch.filter(os.listdir(ROOT_DIR), 'git-*_bin'):
|
42
|
-
full_entry = os.path.join(ROOT_DIR, entry)
|
43
|
-
if full_entry != git_directory:
|
44
|
-
logging.info('Cleaning up old git installation %r', entry)
|
45
|
-
shutil.rmtree(full_entry, ignore_errors=True)
|
46
|
-
|
47
|
-
|
48
|
-
def cipd_install(args, dest_directory, package, version):
|
49
|
-
"""Installs CIPD |package| at |version| into |dest_directory|."""
|
50
|
-
manifest_file = tempfile.mktemp()
|
51
|
-
try:
|
52
|
-
with open(manifest_file, 'w') as f:
|
53
|
-
f.write('%s %s\n' % (package, version))
|
54
|
-
|
55
|
-
cipd_args = [
|
56
|
-
args.cipd_client,
|
57
|
-
'ensure',
|
58
|
-
'-list', manifest_file,
|
59
|
-
'-root', dest_directory,
|
60
|
-
]
|
61
|
-
if args.cipd_cache_directory:
|
62
|
-
cipd_args.extend(['-cache-dir', args.cipd_cache_directory])
|
63
|
-
if args.verbose:
|
64
|
-
cipd_args.append('-verbose')
|
65
|
-
_check_call(cipd_args)
|
66
|
-
finally:
|
67
|
-
os.remove(manifest_file)
|
68
|
-
|
69
|
-
|
70
|
-
def need_to_install_git(args, git_directory):
|
71
|
-
"""Returns True if git needs to be installed."""
|
72
|
-
if args.force:
|
73
|
-
return True
|
74
|
-
git_exe_path = os.path.join(git_directory, 'bin', 'git.exe')
|
75
|
-
if not os.path.exists(git_exe_path):
|
76
|
-
return True
|
77
|
-
if subprocess.call(
|
78
|
-
[git_exe_path, '--version'],
|
79
|
-
stdout=DEVNULL, stderr=DEVNULL) != 0:
|
80
|
-
return True
|
81
|
-
for script in ('git.bat', 'gitk.bat', 'ssh.bat', 'ssh-keygen.bat',
|
82
|
-
'git-bash'):
|
83
|
-
full_path = os.path.join(ROOT_DIR, script)
|
84
|
-
if not os.path.exists(full_path):
|
85
|
-
return True
|
86
|
-
with open(full_path) as f:
|
87
|
-
if os.path.relpath(git_directory, ROOT_DIR) not in f.read():
|
88
|
-
return True
|
89
|
-
if not os.path.exists(os.path.join(
|
90
|
-
git_directory, 'etc', 'profile.d', 'python.sh')):
|
91
|
-
return True
|
92
|
-
return False
|
93
|
-
|
94
|
-
|
95
|
-
def install_git(args, git_version, git_directory):
|
96
|
-
"""Installs |git_version| into |git_directory|."""
|
97
|
-
cipd_platform = 'windows-%s' % ('amd64' if args.bits == 64 else '386')
|
98
|
-
temp_dir = tempfile.mkdtemp()
|
99
|
-
try:
|
100
|
-
cipd_install(args,
|
101
|
-
temp_dir,
|
102
|
-
'infra/depot_tools/git_installer/%s' % cipd_platform,
|
103
|
-
'v' + git_version.replace('.', '_'))
|
104
|
-
|
105
|
-
if not os.path.exists(git_directory):
|
106
|
-
os.makedirs(git_directory)
|
107
|
-
|
108
|
-
# 7-zip has weird expectations for command-line syntax. Pass it as a string
|
109
|
-
# to avoid subprocess module quoting breaking it. Also double-escape
|
110
|
-
# backslashes in paths.
|
111
|
-
_check_call(' '.join([
|
112
|
-
os.path.join(temp_dir, 'git-installer.exe'),
|
113
|
-
'-y',
|
114
|
-
'-InstallPath="%s"' % git_directory.replace('\\', '\\\\'),
|
115
|
-
'-Directory="%s"' % git_directory.replace('\\', '\\\\'),
|
116
|
-
]))
|
117
|
-
finally:
|
118
|
-
shutil.rmtree(temp_dir, ignore_errors=True)
|
119
|
-
|
120
|
-
with open(os.path.join(THIS_DIR, 'git.template.bat')) as f:
|
121
|
-
git_template = f.read()
|
122
|
-
git_template = git_template.replace(
|
123
|
-
'GIT_BIN_DIR', os.path.relpath(git_directory, ROOT_DIR))
|
124
|
-
scripts = (
|
125
|
-
('git.bat', 'cmd\\git.exe'),
|
126
|
-
('gitk.bat', 'cmd\\gitk.exe'),
|
127
|
-
('ssh.bat', 'usr\\bin\\ssh.exe'),
|
128
|
-
('ssh-keygen.bat', 'usr\\bin\\ssh-keygen.exe'),
|
129
|
-
)
|
130
|
-
for script in scripts:
|
131
|
-
with open(os.path.join(ROOT_DIR, script[0]), 'w') as f:
|
132
|
-
f.write(git_template.replace('GIT_PROGRAM', script[1]))
|
133
|
-
with open(os.path.join(THIS_DIR, 'git-bash.template.sh')) as f:
|
134
|
-
git_bash_template = f.read()
|
135
|
-
with open(os.path.join(ROOT_DIR, 'git-bash'), 'w') as f:
|
136
|
-
f.write(git_bash_template.replace(
|
137
|
-
'GIT_BIN_DIR', os.path.relpath(git_directory, ROOT_DIR)))
|
138
|
-
shutil.copyfile(
|
139
|
-
os.path.join(THIS_DIR, 'profile.d.python.sh'),
|
140
|
-
os.path.join(git_directory, 'etc', 'profile.d', 'python.sh'))
|
141
|
-
|
142
|
-
git_bat_path = os.path.join(ROOT_DIR, 'git.bat')
|
143
|
-
_check_call([git_bat_path, 'config', '--system', 'core.autocrlf', 'false'])
|
144
|
-
_check_call([git_bat_path, 'config', '--system', 'core.filemode', 'false'])
|
145
|
-
_check_call([git_bat_path, 'config', '--system', 'core.preloadindex', 'true'])
|
146
|
-
_check_call([git_bat_path, 'config', '--system', 'core.fscache', 'true'])
|
147
|
-
|
148
|
-
|
149
|
-
def sync_git_help_files(git_directory):
|
150
|
-
"""Updates depot_tools help files inside |git_directory|."""
|
151
|
-
# TODO(phajdan.jr): consider replacing the call with python code.
|
152
|
-
_check_call([
|
153
|
-
'xcopy', '/i', '/q', '/d', '/y',
|
154
|
-
os.path.join(ROOT_DIR, 'man', 'html', '*'),
|
155
|
-
os.path.join(git_directory, 'mingw64', 'share', 'doc', 'git-doc')],
|
156
|
-
stdout=DEVNULL)
|
157
|
-
|
158
|
-
|
159
|
-
def main(argv):
|
160
|
-
parser = argparse.ArgumentParser()
|
161
|
-
parser.add_argument('--bits', type=int, choices=(32,64), default=64,
|
162
|
-
help='Bitness of the client to install.')
|
163
|
-
parser.add_argument('--cipd-client',
|
164
|
-
help='Path to CIPD client binary. default: %(default)s',
|
165
|
-
default=os.path.join(ROOT_DIR, 'cipd'+BAT_EXT))
|
166
|
-
parser.add_argument('--cipd-cache-directory',
|
167
|
-
help='Path to CIPD cache directory.')
|
168
|
-
parser.add_argument('--force', action='store_true',
|
169
|
-
help='Always re-install git.')
|
170
|
-
parser.add_argument('--verbose', action='store_true')
|
171
|
-
args = parser.parse_args(argv)
|
172
|
-
|
173
|
-
if os.environ.get('WIN_TOOLS_FORCE') == '1':
|
174
|
-
args.force = True
|
175
|
-
|
176
|
-
logging.basicConfig(level=logging.INFO if args.verbose else logging.WARN)
|
177
|
-
|
178
|
-
git_version = get_target_git_version()
|
179
|
-
git_directory = os.path.join(
|
180
|
-
ROOT_DIR, 'git-%s-%s_bin' % (git_version, args.bits))
|
181
|
-
|
182
|
-
clean_up_old_git_installations(git_directory)
|
183
|
-
|
184
|
-
if need_to_install_git(args, git_directory):
|
185
|
-
install_git(args, git_version, git_directory)
|
186
|
-
|
187
|
-
sync_git_help_files(git_directory)
|
188
|
-
|
189
|
-
return 0
|
190
|
-
|
191
|
-
|
192
|
-
if __name__ == '__main__':
|
193
|
-
sys.exit(main(sys.argv[1:]))
|
@@ -1 +0,0 @@
|
|
1
|
-
2.10.0
|
@@ -1 +0,0 @@
|
|
1
|
-
2.10.0
|
@@ -1,8 +0,0 @@
|
|
1
|
-
@echo off
|
2
|
-
:: Copyright 2013 The Chromium Authors. All rights reserved.
|
3
|
-
:: Use of this source code is governed by a BSD-style license that can be
|
4
|
-
:: found in the LICENSE file.
|
5
|
-
|
6
|
-
setlocal
|
7
|
-
set PATH=%~dp0python276_bin;%~dp0python276_bin\Scripts;%PATH%
|
8
|
-
"%~dp0python276_bin\python.exe" %*
|
@@ -1,91 +0,0 @@
|
|
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
|
3
|
-
// found in the LICENSE file.
|
4
|
-
|
5
|
-
function Unzip(file, path, verbose) {
|
6
|
-
if (verbose) {
|
7
|
-
WScript.StdOut.Write(" * UNZIP " + file);
|
8
|
-
}
|
9
|
-
var shell_app;
|
10
|
-
var fso;
|
11
|
-
try {
|
12
|
-
shell_app = new ActiveXObject("Shell.Application");
|
13
|
-
fso = new ActiveXObject("Scripting.FileSystemObject");
|
14
|
-
} catch (e) {
|
15
|
-
WScript.StdOut.WriteLine("[-] OBJECTS " + new Number(e.number).toHex() +
|
16
|
-
": Cannot create Active-X object (" + e.description) + ").";
|
17
|
-
WScript.Quit(1);
|
18
|
-
}
|
19
|
-
// shell_app.Namespace() doesn't work with relative paths.
|
20
|
-
//current_dir = fso.GetFolder('.').Path + '\\'
|
21
|
-
//path = current_dir + path
|
22
|
-
//file = current_dir + file
|
23
|
-
var out;
|
24
|
-
var zip;
|
25
|
-
try {
|
26
|
-
if (!fso.FolderExists(path)) {
|
27
|
-
fso.CreateFolder(path);
|
28
|
-
}
|
29
|
-
out = shell_app.Namespace(path);
|
30
|
-
} catch (e) {
|
31
|
-
WScript.StdOut.WriteLine("[-] SHELL.APPLICATION " +
|
32
|
-
new Number(e.number).toHex() +
|
33
|
-
": Failed to open output directory.");
|
34
|
-
WScript.Quit(1);
|
35
|
-
}
|
36
|
-
if (!out) {
|
37
|
-
WScript.StdOut.WriteLine("[-] SHELL.APPLICATION : Failed to open output directory.");
|
38
|
-
WScript.Quit(1);
|
39
|
-
}
|
40
|
-
|
41
|
-
try {
|
42
|
-
zip = shell_app.Namespace(file);
|
43
|
-
} catch (e) {
|
44
|
-
WScript.StdOut.WriteLine("[-] SHELL.APPLICATION " +
|
45
|
-
new Number(e.number).toHex() +
|
46
|
-
": Failed to open zip file.");
|
47
|
-
WScript.Quit(1);
|
48
|
-
}
|
49
|
-
if (!zip) {
|
50
|
-
WScript.StdOut.WriteLine("[-] SHELL.APPLICATION " +
|
51
|
-
": Failed to open zip file.");
|
52
|
-
WScript.Quit(1);
|
53
|
-
}
|
54
|
-
|
55
|
-
try {
|
56
|
-
out.CopyHere(zip.Items());
|
57
|
-
} catch (e) {
|
58
|
-
WScript.StdOut.WriteLine("[-] SHELL.APPLICATION " +
|
59
|
-
new Number(e.number).toHex() +
|
60
|
-
": Failed to extract.");
|
61
|
-
WScript.Quit(1);
|
62
|
-
}
|
63
|
-
if (verbose) {
|
64
|
-
WScript.StdOut.WriteLine("ok.");
|
65
|
-
}
|
66
|
-
}
|
67
|
-
|
68
|
-
// Utilities
|
69
|
-
Number.prototype.isInt = function NumberIsInt() {
|
70
|
-
return this % 1 == 0;
|
71
|
-
};
|
72
|
-
Number.prototype.toHex = function NumberToHex(length) {
|
73
|
-
if (arguments.length == 0) length = 1;
|
74
|
-
if (typeof(length) != "number" && !(length instanceof Number)) {
|
75
|
-
throw Exception("Length must be a positive integer larger than 0.",
|
76
|
-
TypeError, 0);
|
77
|
-
}
|
78
|
-
if (length < 1 || !length.isInt()) {
|
79
|
-
throw Exception("Length must be a positive integer larger than 0.",
|
80
|
-
"RangeError", 0);
|
81
|
-
}
|
82
|
-
var result = (this + (this < 0 ? 0x100000000 : 0)).toString(16);
|
83
|
-
while (result.length < length) result = "0" + result;
|
84
|
-
return result;
|
85
|
-
};
|
86
|
-
|
87
|
-
if (WScript.Arguments.length != 2) {
|
88
|
-
WScript.StdOut.Write("Incorrect arguments to unzip.js")
|
89
|
-
} else {
|
90
|
-
Unzip(WScript.Arguments(0), WScript.Arguments(1), false);
|
91
|
-
}
|