Prevent having to relink most of pandatool when version info changes

This commit is contained in:
rdb 2015-08-09 22:26:25 +02:00
parent 1e870b3c1c
commit 369305c529

View File

@ -27,7 +27,7 @@
#include "configVariableBool.h" #include "configVariableBool.h"
#include "panda_getopt_long.h" #include "panda_getopt_long.h"
#include "preprocess_argv.h" #include "preprocess_argv.h"
#include "pandaVersion.h" #include "pandaSystem.h"
#include <stdlib.h> #include <stdlib.h>
#include <algorithm> #include <algorithm>
@ -222,7 +222,8 @@ write_man_page(ostream &out) {
} }
} }
out << " 1 \"" << date_str << "\" \"" PANDA_VERSION_STR "\" Panda3D\n"; out << " 1 \"" << date_str << "\" \""
<< PandaSystem::get_version_string() << "\" Panda3D\n";
out << ".SH NAME\n"; out << ".SH NAME\n";
if (_brief.empty()) { if (_brief.empty()) {