Commit Graph

141 Commits

Author SHA1 Message Date
8d5565a72c
Don't write to matches_all simultaneously from different threads.
What did I do yesterday?!? 😬

Closes: #6
2021-05-27 20:42:20 +02:00
38bf9be948
Fix some more memory leaks. 2021-05-27 20:11:59 +02:00
b24ea9b71e
Fix memory leak. 🤦
All checks were successful
continuous-integration/drone/push Build is passing
That's why I don't write C. 😄

This seems to fix issue #6 in single-threaded mode but sometimes throws “double
free or corruption (out)” in multi-threaded mode.

Bug: #6
2021-05-27 20:05:02 +02:00
ef8fdced51
Update german translation. 2021-05-27 19:09:43 +02:00
fbb87cac81
Remove a few unnecessary .data(), remove unnecessary include. 2021-05-27 19:08:53 +02:00
919da2ddb6
CI: Switch to GCC-8 in Ubuntu bionic.
All checks were successful
continuous-integration/drone/push Build is passing
With GCC-7:
  std::experimental::filesystem::v1::__cxx11::directory_entry’ has no member
  named ‘is_directory’
2021-05-27 18:08:57 +02:00
c0cab0005f
Version bump 0.3.0. 2021-05-27 17:24:43 +02:00
c50659a339
Chunk error string to make it better translatable. 2021-05-27 17:24:19 +02:00
e64591f204
Rework option parsing, change --no-filename.
Some checks failed
continuous-integration/drone/push Build is failing
Options are now better accessible, --no-filename accepts the values filesystem,
in-epub or all.
2021-05-27 17:20:00 +02:00
c376ce8466
Print the EPUB file name if more than 1 input file.
Change --no-filename to mean: Don't print the EPUB file name.
2021-05-27 14:46:23 +02:00
0c45e7ac98
Add --recursive and --dereference-recursive.
Closes: #5
2021-05-27 14:45:52 +02:00
b764f5423c
Put input files into a std::vector<filesystem::path>.
We need that for supporting recursive directory search later.

#
# Previous commits:
#   29ae22c Make regex const.
#   8ed72af Update german translation.
#   a3b0964 Remove old comment.
#   d107ce5 Modify config file example.
2021-05-27 13:46:47 +02:00
29ae22cc4a
Make regex const. 2021-05-27 09:46:59 +02:00
8ed72af8e9
Update german translation. 2021-05-26 20:21:02 +02:00
a3b0964873
Remove old comment. 2021-05-26 20:20:21 +02:00
d107ce5c31
Modify config file example.
It's not a good idea to specify “perl-regexp” in the config file, because it can
not be overriden yet. 😊
2021-05-26 20:19:09 +02:00
7dcf6d599c
Remove debug statements. 2021-05-26 18:25:53 +02:00
fe02b155f5
Import std::string into epubgrep::search namespace.
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-26 18:02:27 +02:00
fc0aa02bc9
Use threads if more than one input file is searched.
Use 75% of the available threads (rounded up).

Closes: #4
2021-05-26 17:50:52 +02:00
554caebcef
Make GETTEXT_CREATE_TRANSLATIONS-hack silent. 2021-05-26 11:05:29 +02:00
10396f0d81
CMake: Prefer Config, make Termcolor-message more visible.
All checks were successful
continuous-integration/drone/push Build is passing
Starting with Boost 1.70, it provides an official CMake Package Config. Prefer
that if it is available. Gets rid of the “New Boost version may have incorrect
or missing dependencies and imported targets” warnings.
2021-05-26 10:48:11 +02:00
6a612caa14
Don't generate checksums. We do that in the CI. 2021-05-26 10:38:13 +02:00
f20f95ff21
Set up drone CI for Debian / Ubuntu package uploading. 2021-05-26 10:37:13 +02:00
8114d1a200
Set up recipe for Debian package generation. 2021-05-26 10:23:18 +02:00
ab3b98c1b7
Add HOMEPAGE_URL to CMake recipe. 2021-05-26 10:18:28 +02:00
694cb3bc44
Add --no-filename switch.
All checks were successful
continuous-integration/drone/push Build is passing
Suppresses the mentioning of file names on output.
2021-05-26 09:04:16 +02:00
9c307ab0fd
Add test for HTML tags in titles. 2021-05-26 08:53:48 +02:00
785fba691f
Debian repo doesn't work for 18.04. 2021-05-26 08:01:28 +02:00
710bf42e0b
Clarify that the pot-file is created during build.
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-25 20:00:00 +02:00
c59474d589
Fix wrong headline level in readme, clarify version requirements.
Some checks are pending
continuous-integration/drone/push Build is running
2021-05-25 19:54:17 +02:00
759e065264
Add Ubuntu info to Debian repo info.
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-25 19:11:07 +02:00
95afc2289d
Add installation instructions for Debian buster.
Some checks reported errors
continuous-integration/drone/push Build was killed
2021-05-25 18:11:54 +02:00
e1356644c4
Add sudo to commands in readme. 2021-05-25 18:04:44 +02:00
55678a8d03
Output message if bundled version of Termcolor is used. 2021-05-25 15:17:37 +02:00
81f16bef7d
Improve compile instructions.
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-25 14:24:20 +02:00
96a3a8fe76
Fix typo in alt text of screenshot.
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-25 12:49:28 +02:00
9d5f771eaa
Remove redundant “license”.
The L in AGPL stands for license.
2021-05-25 12:45:27 +02:00
1c1cccbcd3
Update german translation.
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-25 12:33:07 +02:00
2372dd36ad
Version bump 0.2.0.
Some checks reported errors
continuous-integration/drone/push Build was killed
2021-05-25 12:12:32 +02:00
85a4991775
Fix unterminated ` in readme. 2021-05-25 12:04:22 +02:00
cf82aa2247
Move screenshot a bit further down.
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-25 12:02:18 +02:00
b6347aeab4
Add --nocolor to man page.
Some checks reported errors
continuous-integration/drone/push Build was killed
2021-05-25 11:56:17 +02:00
488573e349
Clarify that the bundled version of Terminfo may be used. 2021-05-25 11:55:18 +02:00
a99ccb6469
Add installation instructions for Gentoo. 2021-05-25 11:54:38 +02:00
fd8db544bd
Add --nocolor switch.
Closes: #2
2021-05-25 11:52:13 +02:00
8d361f88d7
Add screenshot. 2021-05-25 11:43:20 +02:00
382bd71676
Don't install files from bundles termcolor. 2021-05-25 11:42:57 +02:00
165d8597b6
Improve short description and add license information to readme.
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-25 11:08:08 +02:00
b9df8a8279
Typo in readme, add Termcolor to CREDITS. 2021-05-25 11:07:37 +02:00
b72d3f3420
Color matches bright magenta. 2021-05-25 11:00:05 +02:00