|
@@ -19,17 +19,6 @@ MainClass::MainClass(int argc, char *argv[])
|
19
|
19
|
{
|
20
|
20
|
}
|
21
|
21
|
|
22
|
|
-#define Q(x) #x
|
23
|
|
-#define QUOTE(x) Q(x)
|
24
|
|
-
|
25
|
|
-#ifndef GIT_SHA1
|
26
|
|
-#define GIT_SHA1 "unknown"
|
27
|
|
-#endif
|
28
|
|
-
|
29
|
|
-#ifndef GIT_REF_NAME
|
30
|
|
-#define GIT_REF_NAME "unknown"
|
31
|
|
-#endif
|
32
|
|
-
|
33
|
22
|
int MainClass::main()
|
34
|
23
|
{
|
35
|
24
|
CommandLineParser parser(_argc, _argv);
|
|
@@ -233,8 +222,8 @@ void MainClass::printPercentDump(int done, int total)
|
233
|
222
|
|
234
|
223
|
void MainClass::printVersion() const
|
235
|
224
|
{
|
236
|
|
- std::cout << "LibNfc version: " << LibNfcBusiness::getVersion() << std::endl;
|
237
|
|
- std::cout << "Mifare-tools version: " << QUOTE(GIT_REF_NAME) << "-" << QUOTE(GIT_SHA1) << std::endl;
|
|
225
|
+ std::cout << "LibNfc version: " << LibNfcBusiness::getLibNfcVersion() << std::endl;
|
|
226
|
+ std::cout << "Mifare-tools version: " << LibNfcBusiness::getMifareToolsVersion() << std::endl;
|
238
|
227
|
}
|
239
|
228
|
|
240
|
229
|
std::shared_ptr<NfcDeviceBusiness> MainClass::getDevice(const std::string &deviceName, std::vector<std::shared_ptr<NfcDeviceBusiness>> devices)
|