Enhancement: Fixes #210, Provide build tag in package

This commit is contained in:
Rory Fewell
2023-08-02 02:36:32 +01:00
parent 1e560833c3
commit bcd18f721e
11 changed files with 125 additions and 34 deletions

View File

@@ -0,0 +1,9 @@
#/bin/bash
cur_branch=`git branch --show-current | xargs echo -n`
cur_datestamp=`date +%y%m%d-%H%M | xargs echo -n`
cur_hash=`git rev-parse --short HEAD | xargs echo -n`
cur_user=`whoami | xargs echo -n`
tag="${cur_hash}.${cur_branch}(${cur_user}).${cur_datestamp}"
echo -n "${tag}"