From 9b470e1483dd9f2cfd49b32661c3019cba3b78cc Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 29 Mar 2003 00:36:31 +0000 Subject: [PATCH] Revert previous commit, added NT mkvers script --- build/mkvers.bat | 18 ++++++++++++++++++ build/top.mk | 3 +-- build/version.h | 4 ---- 3 files changed, 19 insertions(+), 6 deletions(-) create mode 100755 build/mkvers.bat diff --git a/build/mkvers.bat b/build/mkvers.bat new file mode 100755 index 0000000000..3144a6cde3 --- /dev/null +++ b/build/mkvers.bat @@ -0,0 +1,18 @@ +rem $OpenLDAP$ +rem Copyright 1998-2003 The OpenLDAP Foundation +rem COPYING RESTRICTIONS APPLY. See COPYRIGHT File in top level directory +rem of this package for details. +rem +rem Create a version.c file from build/version.h +rem + +rem input, output, app, static + +copy %1 %2 +(echo. ) >> %2 +(echo #include "portable.h") >> %2 +(echo. ) >> %2 +(echo %4 const char __Version[] =) >> %2 +(echo "@(#) $" OPENLDAP_PACKAGE ": %3 " OPENLDAP_VERSION) >> %2 +(echo " (" __DATE__ " " __TIME__ ") $\n") >> %2 +(echo "\t%USERNAME%@%COMPUTERNAME% %CD:\=/%\n";) >> %2 diff --git a/build/top.mk b/build/top.mk index 60cbc4e013..bcfb0d6088 100644 --- a/build/top.mk +++ b/build/top.mk @@ -66,7 +66,7 @@ LIBVERSION = @OPENLDAP_LIBVERSION@ LTVERSION = -version-info $(LIBVERSION) # libtool --only flag for libraries: platform specific -NT_LTONLY_LIB = --only-$(BUILD_LIBS_DYNAMIC) +NT_LTONLY_LIB = # --only-$(BUILD_LIBS_DYNAMIC) LTONLY_LIB = $(@PLAT@_LTONLY_LIB) # libtool --only flag for modules: depends on linkage of module @@ -170,7 +170,6 @@ AC_CFLAGS = @CFLAGS@ AC_DEFS = @CPPFLAGS@ # @DEFS@ AC_LDFLAGS = @LDFLAGS@ AC_LIBS = @LIBS@ -CWD_DEF = -D_OLV_CWD=\"`pwd`\" KRB4_LIBS = @KRB4_LIBS@ KRB5_LIBS = @KRB5_LIBS@ diff --git a/build/version.h b/build/version.h index 800a7fcf81..dc6dd3964b 100644 --- a/build/version.h +++ b/build/version.h @@ -7,7 +7,3 @@ static const char copyright[] = "Copyright 1998-2003 The OpenLDAP Foundation\n" "COPYING RESTRICTIONS APPLY\n"; - -_OLV_STATIC const char __Version[] = -"@(#) $" OPENLDAP_PACKAGE ": " _OLV_APP " " OPENLDAP_VERSION " (" _OLV_DATE " " _OLV_TIME ") $\n\t" _OLV_WHO ":" _OLV_CWD "\n"; -