| 1 |
Author: Andreas Tille <[email protected]> |
| 2 |
Last-Update: Thu, 16 Mar 2017 14:19:14 +0100 |
| 3 |
Bug-Debian: https://bugs.debian.org/857900 |
| 4 |
Description: Make sure also C-code interprets VERSION as string |
| 5 |
|
| 6 |
--- a/src/scythe.c |
| 7 |
+++ b/src/scythe.c |
| 8 |
@@ -30,7 +30,7 @@ static const float default_prior = 0.3; |
| 9 |
#endif |
| 10 |
|
| 11 |
#ifndef VERSION |
| 12 |
|
| 13 |
+#define VERSION "0.994" |
| 14 |
#endif |
| 15 |
|
| 16 |
/* Options drawn from GNU's coreutils/src/system.h */ |
| 17 |
@@ -50,11 +50,11 @@ enum { |
| 18 |
break; |
| 19 |
#define case_GETOPT_VERSION_CHAR(Program_name, Version, Authors) \ |
| 20 |
case GETOPT_VERSION_CHAR: \ |
| 21 |
|
| 22 |
+ fprintf(stdout, "%s version %s\nCopyright (c) 2011 The Regents " \ |
| 23 |
"of University of California, Davis Campus.\n" \ |
| 24 |
"%s is free software and comes with ABSOLUTELY NO WARRANTY.\n" \ |
| 25 |
"Distributed under the MIT License.\n\nWritten by %s\n", \ |
| 26 |
|
| 27 |
+ Program_name, Version, Program_name, Authors); \ |
| 28 |
exit(EXIT_SUCCESS); \ |
| 29 |
break; |
| 30 |
/* end code drawn from system.h */ |