aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp
index e0ba7eb..5eb32fe 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -9,7 +9,7 @@
#include "browser.h"
#include "session.h"
#include "util.h"
-#include "version.h"
+#include <version.h>
#include <QFile>
#include <QLibraryInfo>
#include <QTranslator>
@@ -47,7 +47,7 @@ static bool dumpCallback(const google_breakpad::MinidumpDescriptor &descriptor,
pid_t pid = fork();
if(pid == 0) {
char buffer[256];
- snprintf(buffer, 256, "%s %s %s", ctx->handler, SMOLBOTE_BUILD, descriptor.path());
+ snprintf(buffer, 256, "%s %s %s", ctx->handler, poi_Build, descriptor.path());
execlp("/bin/sh", "/bin/sh", "-c", buffer, (char *)nullptr);
}
}
@@ -93,13 +93,13 @@ int main(int argc, char **argv)
// --version
if(config->exists("version")) {
- std::cout << "smolbote " << SMOLBOTE_VERSION << std::endl;
+ std::cout << "smolbote " << poi_Version << std::endl;
return 0;
}
// --build
if(config->exists("build")) {
- std::cout << SMOLBOTE_BUILD;
+ std::cout << poi_Build;
return 0;
}
@@ -124,7 +124,7 @@ int main(int argc, char **argv)
}
if(config->exists("help")) {
- std::cout << "smolbote " << SMOLBOTE_VERSION << ": yet another no-frills browser" << std::endl;
+ std::cout << "smolbote " << poi_Version << ": yet another no-frills browser" << std::endl;
std::cout << "Usage: " << argv[0] << " [options] [command/URL(s)]" << std::endl
<< std::endl;