You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
cd9924a517
Co-authored-by: Ryan Carsten Schmidt <ryandesign@macports.org>
36 lines
1.0 KiB
Diff
36 lines
1.0 KiB
Diff
Fix VERSION expansion in -version and -help.
|
|
|
|
https://gitlab.com/grobian/html2text/-/issues/69
|
|
https://gitlab.com/grobian/html2text/-/commit/5ab68b767ffdf574658e0795db2bfa49971e6a6a
|
|
--- html2text.cpp.orig
|
|
+++ html2text.cpp
|
|
@@ -18,6 +18,10 @@
|
|
* GNU General Public License in the file COPYING for more details.
|
|
*/
|
|
|
|
+#ifdef HAVE_CONFIG_H
|
|
+# include "config.h"
|
|
+#endif
|
|
+
|
|
#include <iostream>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
@@ -66,7 +68,7 @@ main(int argc, char **argv)
|
|
{
|
|
if (argc == 2 && !strcmp(argv[1], "-help")) {
|
|
std::cout
|
|
- << "This is html2text, version " stringify(VERSION) << std::endl
|
|
+ << "This is html2text, version " VERSION << std::endl
|
|
<< std::endl
|
|
<< usage;
|
|
exit(0);
|
|
@@ -74,7 +76,7 @@ main(int argc, char **argv)
|
|
|
|
if (argc == 2 && !strcmp(argv[1], "-version")) {
|
|
std::cout
|
|
- << "This is html2text, version " stringify(VERSION) << std::endl
|
|
+ << "This is html2text, version " VERSION << std::endl
|
|
<< std::endl
|
|
<< "The latest version can be found at "
|
|
<< "https://gitlab.com/grobian/html2text" << std::endl
|