File: sword_version_print.cpp

package info (click to toggle)
bibletime 3.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 14,556 kB
  • sloc: cpp: 33,506; sh: 135; ansic: 86; xml: 43; makefile: 13
file content (27 lines) | stat: -rw-r--r-- 632 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*********
*
* In the name of the Father, and of the Son, and of the Holy Spirit.
*
* This file is part of BibleTime's source code, http://www.bibletime.info/
*
* Copyright 1999-2020 by the BibleTime developers.
* The BibleTime source code is licensed under the GNU General Public License
* version 2.0.
*
**********/

/*
 * Check if Sword's current version is equal or larger than the version given to the program (first commandline argument)
 */

#include <iostream>
#include <swversion.h>

#ifndef SWORD_VERSION_STR
#error SWORD_VERSION_STR not defined!
#endif

int main() {
    std::cout << (SWORD_VERSION_STR);
    return 0;
}