Define version info in autconf. - susmb - mounting of SMB/CIFS shares via FUSE
 (HTM) git clone git://git.codemadness.org/susmb
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit cba62904ecec37582236e6a51e527710c5b7b507
 (DIR) parent 1ac4150cd1a0728a4151e3e3609badfd2844d720
 (HTM) Author: Geoff Johnstone <qwerty@acm.org>
       Date:   Sat,  3 Apr 2010 00:07:05 +0100
       
       Define version info in autconf.
       
       Diffstat:
         M Makefile.in                         |       4 ++--
         M configure.ac                        |       7 ++++++-
         M version.h                           |       5 -----
         A version.m4                          |       5 +++++
       
       4 files changed, 13 insertions(+), 8 deletions(-)
       ---
 (DIR) diff --git a/Makefile.in b/Makefile.in
       @@ -53,8 +53,8 @@ clean:
        
        distclean: clean
                $(RM) -r core usmb-*.tar.bz2 usmb-*.tar.gz doc/*.mdzip.bak config.rng.h \
       -                 autom4te.cache config.h.in~ config.status config.log config.h \
       -                                         Makefile
       +           autom4te.cache config.h.in~ config.status config.log config.h \
       +           Makefile
        
        
        allclean: distclean
 (DIR) diff --git a/configure.ac b/configure.ac
       @@ -1,8 +1,13 @@
       +m4_include([version.m4])
       +
        AC_PREREQ([2.63])
       -AC_INIT([usmb], [20100212])
       +AC_INIT([usmb], VERSION_)
        AC_CONFIG_SRCDIR([usmb.c])
        AC_CONFIG_HEADERS([config.h])
        
       +AC_DEFINE([USMB_VERSION],[0x]VERSION_,[usmb version])
       +AC_DEFINE([USMB_VERSION_STATUS],'[VERSION_STATUS_]',[Version status])
       +
        AC_ARG_ENABLE([debug],
                      [AS_HELP_STRING([--enable-debug],
                                      [Build in debug mode (default no)])],
 (DIR) diff --git a/version.h b/version.h
       @@ -19,11 +19,6 @@
        
          #include <stdio.h>
        
       -  #define USMB_VERSION 0x20100404
       -
       -  // a - alpha, b - beta, p - pre-release, s - stable
       -  #define USMB_VERSION_STATUS 'b'
       -
          void show_about (FILE *fp);
          void show_version (FILE *fp);
        
 (DIR) diff --git a/version.m4 b/version.m4
       @@ -0,0 +1,5 @@
       +m4_define([VERSION_],[20100404])
       +
       +# a - alpha, b - beta, p - pre-release, s - stable
       +m4_define([VERSION_STATUS_],[b])
       +