diff options
author | Pjotr Prins | 2016-10-09 10:42:33 +0000 |
---|---|---|
committer | Pjotr Prins | 2016-10-09 10:42:33 +0000 |
commit | 03ba5bf1edcf4f7adec15b51d0d8e22274fd4a07 (patch) | |
tree | bda2bc876b3225b88ab95498fd66967a85ab2fa1 /bin | |
parent | 9e4d5f6796c6e21d344709a73b60082cc602e6f3 (diff) | |
download | genenetwork2-03ba5bf1edcf4f7adec15b51d0d8e22274fd4a07.tar.gz |
Add version information
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/genenetwork2 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/genenetwork2 b/bin/genenetwork2 index b2de4c95..52d3155c 100755 --- a/bin/genenetwork2 +++ b/bin/genenetwork2 @@ -26,6 +26,10 @@ GN2_BASE_DIR=$(dirname $(dirname "$SCRIPT")) echo GN2_BASE_DIR=$GN2_BASE_DIR +GIT_HASH=$(git rev-parse HEAD) +GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD) +export GN_VERSION=$(cat $GN2_BASE_DIR/VERSION)-$GIT_BRANCH-${GIT_HASH:0:9} +echo GN_VERSION=$GN_VERSION # Handle settings parameter (can be .py or .json) settings=$1 |