Skip to content

Commit

Permalink
chore: Include a revision number in the build_info
Browse files Browse the repository at this point in the history
  • Loading branch information
nurupo committed Mar 29, 2024
1 parent 4645162 commit dc9eaf2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions script/build-minimal-static-toxic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,12 @@ mv "$PREPARE_ARTIFACT_DIR/toxic.conf.example" "$PREPARE_ARTIFACT_DIR/toxic.conf"
cp -aL /usr/share/terminfo "$PREPARE_ARTIFACT_DIR"

TOXIC_COMMIT="$(git -C "$BUILD_DIR/toxic" rev-parse HEAD)"
TOXIC_REV="$(git -C "$BUILD_DIR/toxic" rev-list HEAD --count)"
if [ -z "$TOXIC_TAG" ]
then
TOXIC_VERSION="$TOXIC_COMMIT"
TOXIC_VERSION="untagged_r${TOXIC_REV} ($TOXIC_COMMIT)"
else
TOXIC_VERSION="$TOXIC_TAG ($TOXIC_COMMIT)"
TOXIC_VERSION="${TOXIC_TAG}_r${TOXIC_REV} ($TOXIC_COMMIT)"
fi

echo "A minimal statically compiled Toxic.
Expand Down

0 comments on commit dc9eaf2

Please sign in to comment.