diff options
author | Adam <Adam@anope.org> | 2010-12-23 23:33:02 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-12-23 23:33:02 -0500 |
commit | a6c8a6a9f2c3f6c0fda6e5bdfeecc3af8c9b5708 (patch) | |
tree | aa6e1f6c8dd535c735bcdcce4fcabb342506cc09 /include/version.cpp | |
parent | 1a3ba00c246803ee06a680060454fb6782e5dd7d (diff) |
Prevent version.cpp from prepending version.sh's VERSION_EXTRA on every build
Diffstat (limited to 'include/version.cpp')
-rw-r--r-- | include/version.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/version.cpp b/include/version.cpp index 9b8f38c45..8cf362726 100644 --- a/include/version.cpp +++ b/include/version.cpp @@ -96,7 +96,7 @@ int main(int argc, char *argv[]) for (std::list<std::pair<std::string, std::string> >::iterator it = versions.begin(), it_end = versions.end(); it != it_end; ++it) { if (it->first == "EXTRA") - fd << "#define VERSION_EXTRA \"" << (!version_extra.empty() ? version_extra : "") << it->second << "\"" << std::endl; + fd << "#define VERSION_EXTRA \"" << (!version_extra.empty() ? version_extra : "") << (version_extra.find(it->second) == std::string::npos ? it->second : "") << "\"" << std::endl; else fd << "#define VERSION_" << it->first << " " << it->second << std::endl; } |