Skip to content

Commit 40e3ea2

Browse files
author
Roscoe A. Bartlett
committed
Add tribits_tag_prefix.txt for targeted version info
This now puts a targeted tag prefix for TriBITS documentation. Now it shows 'tribits-start-<num-commits>-<sha1>' instead of tags for VERA releases. When I do a TriBITS release, this will get updated appropriately to show the release version number.
1 parent 3fa9e2e commit 40e3ea2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

tribits/doc/utils/gen_doc_utils.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,15 @@ function update_if_different {
4545

4646
function generate_git_version_file {
4747

48+
_TRIBITS_TAG_PREFIX=`cat ../../../tribits_tag_prefix.txt`
49+
4850
if [ -e ../../../.git ] ; then
4951
echo
5052
echo "Generating git version"
5153
echo
52-
echo `git describe` > TribitsGitVersion.txt
54+
echo `git describe --match="$_TRIBITS_TAG_PREFIX*"` > TribitsGitVersion.txt
5355
else
54-
echo "Unknown version" > TribitsGitVersion.txt
56+
echo "$_TRIBITS_TAG_PREFIX.{Unknown version}" > TribitsGitVersion.txt
5557
fi
5658

5759
}

tribits_tag_prefix.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tribits_start

0 commit comments

Comments
 (0)