summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2018-07-13 14:26:43 +0200
committerJan Lehnardt <jan@apache.org>2018-07-17 08:44:33 +0200
commit79eb1afc8e2c11d3ae1a71057656af05a541fffe (patch)
treebc2b7f837dda48dac684f3c9778f38c944754ede /build-aux
parent3acf15f7f16e09d50eb96a99893f3cbe7a9d2d1d (diff)
downloadcouchdb-79eb1afc8e2c11d3ae1a71057656af05a541fffe.tar.gz
Report git sha on welcome request
Closes #1309
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/couchdb-build-release.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/build-aux/couchdb-build-release.sh b/build-aux/couchdb-build-release.sh
index 4482b713c..2d219e5e4 100755
--- a/build-aux/couchdb-build-release.sh
+++ b/build-aux/couchdb-build-release.sh
@@ -35,8 +35,12 @@ done
cd ..
-# create CONTRIBUTORS file
+
if test -e .git; then
+ # save git sha in version.mk
+ git_sha=`git rev-parse --short HEAD`
+ echo "git_sha=$git_sha" >> $RELDIR/version.mk
+ # create CONTRIBUTORS file
OS=`uname -s`
case "$OS" in
Linux|CYGWIN*) # GNU sed