Print version information by the script (#110)

This commit is contained in:
irengrig 2018-09-21 11:48:39 +02:00 committed by GitHub
parent e1c3ce3ef5
commit 97d6cfee0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,7 @@
"""
load("@bazel_skylib//lib:collections.bzl", "collections")
load(":version.bzl", "VERSION")
load(
"//tools/build_defs:cc_toolchain_util.bzl",
"LibrariesToLinkInfo",
@ -177,8 +178,10 @@ def cc_external_rule_impl(ctx, attrs):
if not ctx.attr._target_os[OSInfo].is_osx:
set_envs = "\n".join(["export {}=\"{}\"".format(key, env[key]) for key in env])
version_and_lib = "Bazel external C/C++ Rules #{}. Building library '{}'".format(VERSION, lib_name)
script_lines = [
"echo \"Building external library '{}'\"".format(lib_name),
"echo \"\n{}\n\"".format(version_and_lib),
"set -e",
"source " + shell_utils,
set_envs,

View File

@ -0,0 +1 @@
VERSION = "0.0.1"