bazel-0.8.0


bazel-0.8.0-dist.zip 国内下载好久。下载解压后,执行./compile即可
资源截图
代码片段和文件信息
# pylint: disable=g-bad-file-header
# pylint: disable=g-direct-third-party-import
#
# Copyright 2017 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License Version 2.0 (the “License“);
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http:#www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing software
# distributed under the License is distributed on an “AS IS“ BASIS
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
“““Creates the Bazel source distribution archive.“““

import contextlib
import os.path
import sys
import zipfile

from src.create_embedded_tools_lib import copy_tar_to_zip
from src.create_embedded_tools_lib import copy_zip_to_zip


def main():
  output_zip = os.path.join(os.getcwd() sys.argv[1])
  input_files = sorted(sys.argv[2:])

  # Copy all the input_files into output_zip.
  # Adding contextlib.closing to be python 2.6 (for centos 6.7) compatible
  with contextlib.closing(
      zipfile.ZipFile(output_zip “w“ zipfile.ZIP_DEFLATED)) as output_zip:

    def _normalize(path):
      return path[2:] if path.startswith(“./“) else path

    for input_file in input_files:
      if input_file.endswith(“.tar“):
        copy_tar_to_zip(output_zip input_file _normalize)
      elif input_file.endswith(“.zip“):
        copy_zip_to_zip(output_zip input_file _normalize)
      else:
        raise Exception(“unknown archive type “%s““ % input_file)


if __name__ == “__main__“:
  main()

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件        1303  1980-01-01 00:00  AUTHORS
     文件        2657  1980-01-01 00:00  BUILD
     文件       95340  1980-01-01 00:00  CHANGELOG.md
     文件         822  1980-01-01 00:00  CONTRIBUTING.md
     文件        3805  1980-01-01 00:00  CONTRIBUTORS
     文件        1113  1980-01-01 00:00  ISSUE_TEMPLATE.md
     文件       11358  1980-01-01 00:00  LICENSE
     文件        2074  1980-01-01 00:00  README.md
     文件        5173  1980-01-01 00:00  WORKSPACE
     文件         310  1980-01-01 00:00  bazel.bazelrc
     文件        1682  1980-01-01 00:00  combine_distfiles.py
     文件        1408  1980-01-01 00:00  combine_distfiles_to_tar.sh
     文件        3495  1980-01-01 00:00  compile.sh
     文件         448  1980-01-01 00:00  examplesBUILD
     文件        2677  1980-01-01 00:00  examplesandroidREADME.md
     文件         695  1980-01-01 00:00  examplesandroidjavaazelAndroidManifest.xml
     文件         645  1980-01-01 00:00  examplesandroidjavaazelBUILD
     文件         139  1980-01-01 00:00  examplesandroidjavaazelJni.java
     文件         168  1980-01-01 00:00  examplesandroidjavaazelLib.java
     文件         521  1980-01-01 00:00  examplesandroidjavaazelMainActivity.java
     文件         229  1980-01-01 00:00  examplesandroidjavaazeljni.cc
     文件         407  1980-01-01 00:00  examplesandroidjavaazeljni_dep.cc
     文件          87  1980-01-01 00:00  examplesandroidjavaazeljni_dep.h
     文件         117  1980-01-01 00:00  examplesandroidjavaazel
esvaluescolors.xml
     文件         185  1980-01-01 00:00  examplesandroidjavaazel
esvaluesstyles.xml
     文件         508  1980-01-01 00:00  examplescppBUILD
     文件          88  1980-01-01 00:00  examplescppREADME.md
     文件         451  1980-01-01 00:00  examplescpphello-fail.cc
     文件         328  1980-01-01 00:00  examplescpphello-lib.cc
     文件         365  1980-01-01 00:00  examplescpphello-lib.h
     文件         747  1980-01-01 00:00  examplescpphello-world.cc
............此处省略9197个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)