Skip to content

Commit

Permalink
Merge pull request #1670 from hzeller/20230201-run-version-header-as-…
Browse files Browse the repository at this point in the history
…sh-binary

Reformulate version_header to use sed instead.
  • Loading branch information
hzeller authored Feb 1, 2023
2 parents 25f1852 + b9ebe98 commit 01020e8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 30 deletions.
3 changes: 1 addition & 2 deletions common/util/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,8 @@ cc_library(
genrule(
name = "version_header",
outs = ["generated_verible_build_version.h"],
cmd = "./$(location create_version_header.sh) > $@",
cmd = "sed -e 's/^/#define VERIBLE_/' bazel-out/volatile-status.txt > $@",
stamp = 1, # Tell bazel that we really are interested in the status file
tools = ["create_version_header.sh"],
visibility = ["//visibility:private"],
)

Expand Down
28 changes: 0 additions & 28 deletions common/util/create_version_header.sh

This file was deleted.

1 change: 1 addition & 0 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ pkgs.mkShell {
buildInputs = with pkgs;
[
bash
gnused
bazel_4
gcc
git
Expand Down

0 comments on commit 01020e8

Please sign in to comment.