HIRS/HIRS_ProvisionerTPM2/package/package_release.sh

16 lines
523 B
Bash
Raw Normal View History

2018-09-06 13:47:33 +00:00
#!/bin/bash
# NOTE: This script uses many of the same commands as the build_version_helper.sh found under the top level
# 'package' directory
# script that pulls version information from git for populating the TPM2 Provisioner release information
# with regards to packaging
# script is to be invoked in CMake for loading into build process
GIT_HASH=`git rev-parse HEAD | head -c6`
GIT_COMMIT_UNIX_TIMESTAMP=`git show -s --format=%ct | xargs echo -n`
RELEASE="$((GIT_COMMIT_UNIX_TIMESTAMP)).$GIT_HASH"
echo "$RELEASE"