mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2024-11-25 00:53:43 +00:00
Buildfix and minor changes
This commit is contained in:
parent
bef901c56c
commit
986f0c8db3
4 changed files with 5 additions and 4 deletions
|
@ -52,7 +52,6 @@ add_subdirectory(src/pq)
|
|||
add_subdirectory(src/main)
|
||||
add_subdirectory(src/common)
|
||||
add_subdirectory(src/delete)
|
||||
add_subdirectory(src/query)
|
||||
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
INTERFACE ${PostgreSQL_LIBRARIES}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# dindexer #
|
||||
## Flattr ##
|
||||
[![Flattr this git repo](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=King_DuckZ&url=https%3A%2F%2Fbitbucket.org%2FKing_DuckZ%2Fdindexer&title=dindexer&language=c%2B%2B&tags=bitbucket&category=software)
|
||||
[![Flattr this git repo](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=King_DuckZ&url=https%3A%2F%2Fbitbucket.org%2FKing_DuckZ%2Fdindexer&title=dindexer&language=en_GB&tags=bitbucket&category=software)
|
||||
|
||||
Please support the development of this software if you like it!
|
||||
|
||||
|
@ -30,7 +30,7 @@ As dindexer needs to write data to a PostgreSQL database, you need to configure
|
|||
Using dindexer is pretty straightforward: mount your DVD and scan it. For example:
|
||||
|
||||
mount /dev/cdrom /media/my_backup
|
||||
dindexer --setname "My generic backup 2015-11-13" /media/my_backup
|
||||
dindexer scan --setname "My generic backup 2015-11-13" /media/my_backup
|
||||
|
||||
The program will go through every file in the path you specify. Hashing everything in that path could take a bit of time, so please be patient.
|
||||
|
||||
|
|
|
@ -15,8 +15,9 @@
|
|||
* along with "dindexer". If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <iostream>
|
||||
#include "commandline.hpp"
|
||||
#include <iostream>
|
||||
#include <ciso646>
|
||||
|
||||
int main (int parArgc, char* parArgv[]) {
|
||||
using boost::program_options::variables_map;
|
||||
|
|
|
@ -32,6 +32,7 @@ namespace {
|
|||
}
|
||||
std::cout << "Confirm deleting these sets? (Y/n)" << std::endl;
|
||||
std::string answer;
|
||||
//see also: http://www.lb-stuff.com/user-input
|
||||
std::cin >> std::noskipws >> answer >> std::skipws;
|
||||
|
||||
return (answer.empty() or "y" == answer or "Y" == answer);
|
||||
|
|
Loading…
Reference in a new issue