Record the version of the source repository that was used to build the leveldb library.

Summary: Record the version of the source that we are compiling. We keep a record of the git revision in util/version.cc. This source file is then built as a regular source file as part of the compilation process. One can run "strings executable_filename | grep _build_" to find the version of the source that we used to build the executable file.

Test Plan: none

Differential Revision: https://reviews.facebook.net/D4785
This commit is contained in:
Dhruba Borthakur
2012-08-21 00:33:21 -07:00
committed by heyongqiang
parent d41316bc0f
commit 5d96f290b3
2 changed files with 3 additions and 2 deletions

View File

@@ -22,4 +22,3 @@ 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}