From 884137a986f3faa4f66de809a2e3b6c190a6263a Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Sat, 2 Sep 2023 13:38:31 -0400 Subject: [PATCH] still no stamping --- .bazelrc | 6 ++++++ git-desc.sh => tools/git-desc.sh | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) rename git-desc.sh => tools/git-desc.sh (59%) diff --git a/.bazelrc b/.bazelrc index fa8dd50..3486901 100644 --- a/.bazelrc +++ b/.bazelrc @@ -14,6 +14,12 @@ common --lockfile_mode=off # editor's search path. build --symlink_prefix=dist/ +############################### +# Stamping # +############################### +# Enable this with --config=release +build:release --stamp --workspace_status_command=./tools/git-desc.sh + ############################### # Output # ############################### diff --git a/git-desc.sh b/tools/git-desc.sh similarity index 59% rename from git-desc.sh rename to tools/git-desc.sh index 6281632..759a8ce 100755 --- a/git-desc.sh +++ b/tools/git-desc.sh @@ -2,5 +2,5 @@ tag=$(git describe --tags --dirty=-dev) commit=$(git rev-parse HEAD | head -c8) -echo "STABLE_GIT_VERSION:$tag" -echo "STABLE_GIT_COMMIT:$commit" +echo "STABLE_GIT_VERSION $tag" +echo "STABLE_GIT_COMMIT $commit"