diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-11-30 10:42:50 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-11-30 10:42:50 -0500 |
commit | 57b0c56f527e6e4fd5d6c946d486a804d64cf3c9 (patch) | |
tree | 4b4a8af130bcbc67b69bc5c2212c616d1be81c0a | |
parent | 76ff6851afc7b530782554e535fef60c21224972 (diff) | |
download | mongo-57b0c56f527e6e4fd5d6c946d486a804d64cf3c9.tar.gz |
ensure newline at and of buildinfo.cpp
-rw-r--r-- | SConstruct | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index 5bf7e875408..a55b08f04e3 100644 --- a/SConstruct +++ b/SConstruct @@ -639,9 +639,13 @@ def setupBuildInfoFile( outFile ): 'namespace mongo { const char * sysInfo(){ return "' + sysInfo + ' BOOST_LIB_VERSION=" BOOST_LIB_VERSION ; } }', ]) + contents += '\n'; + if os.path.exists( outFile ) and open( outFile ).read().strip() == contents.strip(): return + contents += '\n'; + out = open( outFile , 'w' ) out.write( contents ) out.close() |