Version command implemented
This commit is contained in:
parent
ae7a17cecd
commit
d315941f21
@ -1,2 +1,2 @@
|
||||
# This file should be re-generated running: scripts/update-version-file.sh script
|
||||
v1.0.6-alpha 9278d09
|
||||
v1.0.6-alpha-ae7a17c
|
||||
|
@ -1,3 +1,3 @@
|
||||
# Builds the shiv "package" for distribution
|
||||
./scripts/update_version_file.sh
|
||||
shiv -c laconic-so -o package/laconic-so .
|
||||
version_string=$( ./scripts/update_version_file.sh)
|
||||
shiv -c laconic-so -o package/laconic-so-${version_string} .
|
||||
|
@ -1,3 +1,7 @@
|
||||
version_file_name=./app/data/version.txt
|
||||
echo "# This file should be re-generated running: scripts/update-version-file.sh script" > $version_file_name
|
||||
echo $( git describe --tags --abbrev=0 ; git rev-parse --short HEAD ) >> $version_file_name
|
||||
tag_string=$( git describe --tags --abbrev=0 )
|
||||
commit_string=$( git rev-parse --short HEAD )
|
||||
version_string=${tag_string}-${commit_string}
|
||||
echo ${version_string} >> $version_file_name
|
||||
echo ${version_string}
|
||||
|
Loading…
Reference in New Issue
Block a user