mirror of
https://github.com/PurpleI2P/i2pd-tools
synced 2025-01-15 09:10:01 +00:00
swithed to C++17 and std::filesystem
This commit is contained in:
parent
309690575f
commit
8fdec1f30f
2
Makefile
2
Makefile
@ -12,7 +12,7 @@ INCFLAGS = -I$(LIBI2PD_PATH) -I$(LIBI2PD_CLIENT_PATH)
|
|||||||
DEFINES = -DOPENSSL_SUPPRESS_DEPRECATED
|
DEFINES = -DOPENSSL_SUPPRESS_DEPRECATED
|
||||||
|
|
||||||
LDFLAGS =
|
LDFLAGS =
|
||||||
LDLIBS = $(I2PD_PATH)/$(I2PD_LIB) -lboost_system$(BOOST_SUFFIX) -lboost_date_time$(BOOST_SUFFIX) -lboost_filesystem$(BOOST_SUFFIX) -lboost_program_options$(BOOST_SUFFIX) -lssl -lcrypto -lz
|
LDLIBS = $(I2PD_PATH)/$(I2PD_LIB) -lboost_system$(BOOST_SUFFIX) -lboost_program_options$(BOOST_SUFFIX) -lssl -lcrypto -lz
|
||||||
|
|
||||||
|
|
||||||
ifeq ($(UNAME),Linux)
|
ifeq ($(UNAME),Linux)
|
||||||
|
2
i2pd
2
i2pd
@ -1 +1 @@
|
|||||||
Subproject commit c98926abf2dcd3cbe2cbbfc00a9e9159240c3df9
|
Subproject commit 9668ea9338fe8524781d6966f576227775129769
|
4
vain.cpp
4
vain.cpp
@ -2,7 +2,7 @@
|
|||||||
#include<regex>
|
#include<regex>
|
||||||
#include<getopt.h>
|
#include<getopt.h>
|
||||||
#include<string>
|
#include<string>
|
||||||
#include<boost/filesystem.hpp>
|
#include<filesystem>
|
||||||
//#include<boost/algorithm/string/predicate.hpp>
|
//#include<boost/algorithm/string/predicate.hpp>
|
||||||
//#include<format> // is not supports for me
|
//#include<format> // is not supports for me
|
||||||
|
|
||||||
@ -428,7 +428,7 @@ int main (int argc, char * argv[])
|
|||||||
options.outputpath = options.outputpath + std::to_string(foundKeys) + std::string(".dat");
|
options.outputpath = options.outputpath + std::to_string(foundKeys) + std::string(".dat");
|
||||||
foundKeys++;
|
foundKeys++;
|
||||||
//printf("foundKeys = %d\n", foundKeys);
|
//printf("foundKeys = %d\n", foundKeys);
|
||||||
}while( boost::filesystem::exists(options.outputpath) );
|
}while( std::filesystem::exists(options.outputpath) );
|
||||||
//puts("do while cycle break");
|
//puts("do while cycle break");
|
||||||
//if ( ! boost::algorithm::ends_with(options.outputpath, ".dat") )
|
//if ( ! boost::algorithm::ends_with(options.outputpath, ".dat") )
|
||||||
// options.outputpath = options.outputpath + ".dat";
|
// options.outputpath = options.outputpath + ".dat";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user