From: Dhruba Borthakur Date: Mon, 11 Mar 2013 17:14:59 +0000 (-0700) Subject: Make the build-time show up in the leveldb library. X-Git-Tag: v1.5.8~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c04c956b66312d8a7afa97eb8859fd4d2d22ed6b;p=rocksdb.git Make the build-time show up in the leveldb library. Summary: This is a regression caused by https://github.com/facebook/rocksdb/commit/772f75b3fbc5cfcf4d519114751efeae04411fa1 If you do "strings libleveldb.a | grep leveldb_build_git_datetime" it will show you the time when the binary was built. Test Plan: make check Reviewers: emayanke Reviewed By: emayanke CC: leveldb Differential Revision: https://reviews.facebook.net/D9273 --- diff --git a/build_detect_version b/build_detect_version index 73dbf62a..5f0237e8 100755 --- a/build_detect_version +++ b/build_detect_version @@ -20,6 +20,7 @@ else echo "git not found"| awk ' BEGIN {print "#include \"build_version.h\""} {print "const char * leveldb_build_git_sha = \"leveldb_build_git_sha:git not found\";"} END {}' > ${VFILE} fi +date | awk 'BEGIN {} {print "const char * leveldb_build_git_datetime = \"leveldb_build_git_datetime:"$0"\";"} END {} ' >> ${VFILE} echo "const char * leveldb_build_compile_date = __DATE__;" >> ${VFILE} echo "const char * leveldb_build_compile_time = __TIME__;" >> ${VFILE}