]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commitdiff
Make the build-time show up in the leveldb library.
authorDhruba Borthakur <dhruba@fb.com>
Mon, 11 Mar 2013 17:14:59 +0000 (10:14 -0700)
committerDhruba Borthakur <dhruba@fb.com>
Mon, 11 Mar 2013 17:33:15 +0000 (10:33 -0700)
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

build_detect_version

index 73dbf62af328a316ef2f31308ffa632d193df654..5f0237e851f5e9be620620ce9a5795bca0824ab2 100755 (executable)
@@ -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}