roc/ci/write_version.sh

7 lines
332 B
Bash
Raw Normal View History

2022-06-18 18:10:59 +03:00
#!/usr/bin/env bash
2022-10-17 18:40:35 +03:00
# https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
set -euxo pipefail
2022-06-18 18:10:59 +03:00
# version.txt is used by the CLI: roc --version
printf 'nightly pre-release, built from commit ' > version.txt && git log --pretty=format:'%h' -n 1 >> version.txt && printf ' on ' >> version.txt && date -u >> version.txt