diff options
author | Lee Thompson <thompson@dtosolutions.com> | 2012-11-27 16:02:59 -0600 |
---|---|---|
committer | Lee Thompson <thompson@dtosolutions.com> | 2012-11-27 16:02:59 -0600 |
commit | 006357f954c72bf4212bbc16e869efbfe9d06eda (patch) | |
tree | a4aaa7c96e0ca2f16df73eb3e797be1ef7042d34 /main.c | |
parent | a33c6f3df9d84baf7d2e299e2f0441afea2bd2ec (diff) |
initial attempt at autoconf implementation, removed all generated code from git
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -9,12 +9,12 @@ #include "locfile.h" #include "parser.h" #include "execute.h" -#include "version.gen.h" +#include "config.h" /* Autoconf generated header file */ static const char* progname; static void usage() { - fprintf(stderr, "\njq - commandline JSON processor [version %s]\n", JQ_VERSION); + fprintf(stderr, "\njq - commandline JSON processor [version %s]\n", PACKAGE_VERSION); fprintf(stderr, "Usage: %s [options] <jq filter>\n\n", progname); fprintf(stderr, "For a description of the command line options and\n"); fprintf(stderr, "how to write jq filters (and why you might want to)\n"); @@ -122,7 +122,7 @@ int main(int argc, char* argv[]) { } else if (isoption(argv[i], 'h', "help")) { usage(); } else if (isoption(argv[i], 'V', "version")) { - fprintf(stderr, "jq version %s\n", JQ_VERSION); + fprintf(stderr, "jq version %s\n", PACKAGE_VERSION); return 0; } else { fprintf(stderr, "%s: Unknown option %s\n", progname, argv[i]); |