From fb0bcc48ec7ced83c95990982f663c4dacbcc816 Mon Sep 17 00:00:00 2001 From: Leonardo Zide Date: Sun, 17 Mar 2019 12:29:02 -0700 Subject: [PATCH] Also print continuous build on the command line. --- common/lc_application.cpp | 5 +++++ qt/lc_qaboutdialog.cpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/common/lc_application.cpp b/common/lc_application.cpp index 6661d251..68338e5a 100644 --- a/common/lc_application.cpp +++ b/common/lc_application.cpp @@ -369,6 +369,11 @@ bool lcApplication::Initialize(QList>& LibraryPaths, bool& ParseInteger(PartImagesHeight); else if (Param == QLatin1String("-v") || Param == QLatin1String("--version")) { +#ifdef LC_CONTINUOUS_BUILD + printf("LeoCAD Continuous Build " QT_STRINGIFY(LC_CONTINUOUS_BUILD) "\n"); +#else + printf("LeoCAD Version " LC_VERSION_TEXT "\n"); +#endif printf("LeoCAD Version " LC_VERSION_TEXT "\n"); printf("Compiled " __DATE__ "\n"); diff --git a/qt/lc_qaboutdialog.cpp b/qt/lc_qaboutdialog.cpp index d4398e1d..afb31f74 100644 --- a/qt/lc_qaboutdialog.cpp +++ b/qt/lc_qaboutdialog.cpp @@ -12,7 +12,7 @@ lcQAboutDialog::lcQAboutDialog(QWidget *parent) : ui->setupUi(this); #ifdef LC_CONTINUOUS_BUILD - ui->version->setText(tr("LeoCAD Continuous Build\nfrom commit %1").arg(QString::fromLatin1(QT_STRINGIFY(LC_CONTINUOUS_BUILD)))); + ui->version->setText(tr("LeoCAD Continuous Build %1").arg(QString::fromLatin1(QT_STRINGIFY(LC_CONTINUOUS_BUILD)))); #else ui->version->setText(tr("LeoCAD Version %1").arg(QString::fromLatin1(LC_VERSION_TEXT))); #endif