(THRIFT-40) Add -version switch to the compiler to show the Thrift version
authorDavid Reiss <dreiss@apache.org>
Mon, 30 Jun 2008 20:24:24 +0000 (20:24 +0000)
committerDavid Reiss <dreiss@apache.org>
Mon, 30 Jun 2008 20:24:24 +0000 (20:24 +0000)
commitdd08f6d5a5bbc39b4ab30a3cb6996b39f7605f06
treef18ff8c85f02430a8c8340d2c8a92efdf9fc0e93
parent6b082755f0cba0bb8469f5f262f01a4defce348d
(THRIFT-40) Add -version switch to the compiler to show the Thrift version

The version is determined by configure.ac. After this version is shown the
revision. For subversion, it is simply the current revision as given by
`svnversion`. For git, the latest svn revision that HEAD includes is shown,
followed by the offset of HEAD from that commit, followed by a truncated sha1
for HEAD. If the offset is 0, the offset and sha1 are omitted.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@672900 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/Makefile.am
compiler/cpp/src/main.cc
print_version.sh [new file with mode: 0755]