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"