(THRIFT-40) Add -version switch to the compiler to show the Thrift version
commit4658968dd458910f0acf1b6a3557c7f1a046de09
authordreiss <dreiss@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 30 Jun 2008 20:24:24 +0000 (30 20:24 +0000)
committerdreiss <dreiss@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 30 Jun 2008 20:24:24 +0000 (30 20:24 +0000)
treef18ff8c85f02430a8c8340d2c8a92efdf9fc0e93
parent4307f302e84b299b6941be27af49f295e0369a52
(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]