blob: 1da95940ae71343e1cbaf909bde9704507855abe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/*********
*
* This file is part of BibleTime's source code, http://www.bibletime.info/.
*
* Copyright 1999-2008 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>
int main(int argc, char* argv[])
{
sword::SWVersion testversion(argv[1]);
std::cout << "Your installed Sword version is: " << sword::SWVersion::currentVersion.getText();
return (sword::SWVersion::currentVersion >= testversion) ? 0 : 1;
}
|