forked from zbackup/zbackup
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9022e1f
commit 24303c1
Showing
4 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Copyright (c) 2012-2014 Konstantin Isakov <[email protected]> and ZBackup contributors, see CONTRIBUTORS | ||
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE | ||
|
||
#include <string> | ||
#ifndef ZBACKUP_VERSION | ||
std::string zbackup_version( "1.4" ); | ||
#else | ||
std::string zbackup_version( ZBACKUP_VERSION ); | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Copyright (c) 2012-2014 Konstantin Isakov <[email protected]> and ZBackup contributors, see CONTRIBUTORS | ||
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE | ||
|
||
#ifndef VERSION_HH_INCLUDED | ||
#define VERSION_HH_INCLUDED | ||
#include <string> | ||
|
||
extern std::string zbackup_version; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
#include "backup_collector.hh" | ||
#include "config.hh" | ||
#include "utils.hh" | ||
#include "version.hh" | ||
|
||
using std::vector; | ||
using std::bitset; | ||
|
@@ -443,7 +444,7 @@ int main( int argc, char *argv[] ) | |
if ( args.size() < 1 || printHelp ) | ||
{ | ||
fprintf( stderr, | ||
"ZBackup, a versatile deduplicating backup tool, version 1.4\n" | ||
"ZBackup, a versatile deduplicating backup tool, version %s\n" | ||
"Copyright (c) 2012-2014 Konstantin Isakov <[email protected]> and\n" | ||
"ZBackup contributors\n" | ||
"Comes with no warranty. Licensed under GNU GPLv2 or later + OpenSSL.\n" | ||
|
@@ -475,7 +476,7 @@ int main( int argc, char *argv[] ) | |
" config [show|edit|set] <storage path> - performs configuration\n" | ||
" manipulations (default is show)\n" | ||
" For export/import storage path must be a valid (initialized) storage\n" | ||
"", *argv ); | ||
"", zbackup_version.c_str(), *argv ); | ||
return EXIT_FAILURE; | ||
} | ||
|
||
|