Introduction
Introduction Statistics Contact Development Disclaimer Help
Define version info in autconf. - susmb - mounting of SMB/CIFS shares via FUSE
git clone git://git.codemadness.org/susmb
Log
Files
Refs
README
LICENSE
---
commit cba62904ecec37582236e6a51e527710c5b7b507
parent 1ac4150cd1a0728a4151e3e3609badfd2844d720
Author: Geoff Johnstone <[email protected]>
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(-)
---
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.…
- 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
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)])],
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);
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])
+
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.