[beast: 19/39] TOOLS: use bse_version(), get rid of topconfig.h



commit b312dad6abb3745e163c53253f54c980f9458fce
Author: Tim Janik <timj gnu org>
Date:   Sat Sep 12 00:23:40 2015 +0200

    TOOLS: use bse_version(), get rid of topconfig.h

 tools/bsefcompare.cc |    4 +---
 tools/bsefextract.cc |    5 ++---
 2 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/tools/bsefcompare.cc b/tools/bsefcompare.cc
index 21d68d0..283a441 100644
--- a/tools/bsefcompare.cc
+++ b/tools/bsefcompare.cc
@@ -13,8 +13,6 @@
 #include <fcntl.h>
 #include <string.h>
 
-#include "topconfig.h"
-
 #include <map>
 #include <string>
 #include <vector>
@@ -119,7 +117,7 @@ Options::parse (int   *argc_p,
       else if (strcmp (argv[i], "--version") == 0 ||
                strcmp (argv[i], "-v") == 0)
         {
-          printf ("%s %s\n", program_name.c_str(), BST_VERSION);
+          printf ("%s %s\n", program_name.c_str(), bse_version().c_str());
           exit (0);
         }
       else if (check_arg (argc, argv, &i, "--compact"))
diff --git a/tools/bsefextract.cc b/tools/bsefextract.cc
index d4932f3..59a8c71 100644
--- a/tools/bsefextract.cc
+++ b/tools/bsefextract.cc
@@ -11,7 +11,6 @@
 #include <stdlib.h>
 #include <errno.h>
 #include <assert.h>
-#include "topconfig.h"
 
 #include <map>
 #include <string>
@@ -1364,7 +1363,7 @@ Options::parse (int   *argc_p,
       else if (strcmp (argv[i], "--version") == 0 ||
                strcmp (argv[i], "-v") == 0)
        {
-         printf ("%s %s\n", program_name.c_str(), BST_VERSION);
+         printf ("%s %s\n", program_name.c_str(), bse_version().c_str());
          exit (0);
        }
       else if (strcmp (argv[i], "--verbose") == 0)
@@ -1478,7 +1477,7 @@ static void
 print_header (const char *src)
 {
   fprintf (options.output_file, "# this output was generated by %s %s from channel %d in file %s\n",
-           options.program_name.c_str(), BST_VERSION, options.channel, src);
+           options.program_name.c_str(), bse_version().c_str(), options.channel, src);
   fprintf (options.output_file, "#\n");
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]