Skip to content

Commit

Permalink
Put the current git commit's short hash in generated programs (again).
Browse files Browse the repository at this point in the history
This commit restores changes I made in commit 2365217 that Xuejun Yang
undid in commit 4368520.
  • Loading branch information
eeide committed May 15, 2011
1 parent 97eed7b commit 4f53cd0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/OutputMgr.cpp
Expand Up @@ -362,9 +362,9 @@ OutputMgr::OutputHeader(int argc, char *argv[], unsigned long seed)
out << " * This is a RANDOMLY GENERATED PROGRAM." << endl;
out << " *" << endl;
out << " * Generator: " << PACKAGE_STRING << endl;
#ifdef SVN_VERSION
out << " * svn version: " << SVN_VERSION << endl;
#endif
#ifdef GIT_VERSION
out << " * Git version: " << GIT_VERSION << endl;
#endif
out << " * Options: ";
if (argc <= 1) {
out << " (none)";
Expand Down
5 changes: 2 additions & 3 deletions src/RandomProgramGenerator.cpp
Expand Up @@ -107,10 +107,9 @@ static void
print_version(void)
{
cout << PACKAGE_STRING << endl;
#ifdef SVN_VERSION
cout << "svn version: " << SVN_VERSION << endl;
#ifdef GIT_VERSION
cout << "Git version: " << GIT_VERSION << endl;
#endif
// XXX print svn rev!
// XXX print copyright, contact info, etc.?
}

Expand Down

0 comments on commit 4f53cd0

Please sign in to comment.