]> git.sur5r.net Git - openldap/commitdiff
New version.h to replace mkversion
authorHoward Chu <hyc@openldap.org>
Tue, 18 Mar 2003 22:50:07 +0000 (22:50 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 18 Mar 2003 22:50:07 +0000 (22:50 +0000)
build/version.h [new file with mode: 0644]
include/Makefile.in
include/version.h [new file with mode: 0644]

diff --git a/build/version.h b/build/version.h
new file mode 100644 (file)
index 0000000..058c1ce
--- /dev/null
@@ -0,0 +1,13 @@
+/*
+ * Copyright 1998-2003 The OpenLDAP Foundation
+ * COPYING RESTRICTIONS APPLY.  See COPYRIGHT file in top level directory
+ * of this package for details.
+ */
+
+static const char copyright[] =
+"Copyright 1998-2003 The OpenLDAP Foundation\n"
+"COPYING RESTRICTIONS APPLY\n";
+
+_OLV_STATIC const char __Version[] =
+"@(#) $" _OLV_PKG ": " _OLV_APP " " _OLV_VER " (" _OLV_DATE " " _OLV_TIME ") $\n\t" _OLV_WHO ":" _OLV_CWD "\n";
+
index 7a846c8f24d9ba00a92f9804a33c0fd9cd0a5a67..cc9f6254f3708f560b1847113b12ec20a31a9ad6 100644 (file)
@@ -4,7 +4,7 @@
 ##
 ## include Makefile.in for OpenLDAP
 
-all-local: ldap_config.h FORCE
+all-local: ldap_config.h version0.h FORCE
 
 install-local: FORCE
        -$(MKDIR) $(DESTDIR)$(includedir)
@@ -61,6 +61,10 @@ ldap_config.h: $(LDAP_CONFIG) Makefile
                         $(LDAP_CONFIG) >> $@; \
        $(CHMOD) 444 $@
 
+version0.h: $(top_srcdir)/build/version.h
+       $(CPP) -D_OLV_PKG=\"$(PACKAGE)\" -D_OLV_VER=\"$(VERSION)\" \
+               -D_OLV_WHO=\"$$USER@`uname -n`\" $? > $@
+
 all-common:                    all-local
 install-common:                all-common install-local
 clean-common:          clean-local
diff --git a/include/version.h b/include/version.h
new file mode 100644 (file)
index 0000000..3999433
--- /dev/null
@@ -0,0 +1,12 @@
+/*
+ * Copyright 1998-2003 The OpenLDAP Foundation
+ * COPYING RESTRICTIONS APPLY.  See COPYRIGHT file in top level directory
+ * of this package for details.
+ */
+
+#define _OLV_DATE __DATE__
+#define _OLV_TIME __TIME__
+#ifndef _OLV_STATIC
+#define        _OLV_STATIC     static
+#endif
+#include "version0.h"