From: Howard Chu Date: Sat, 29 Mar 2003 00:36:31 +0000 (+0000) Subject: Revert previous commit, added NT mkvers script X-Git-Tag: NO_SLAP_OP_BLOCKS~13 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9b470e1483dd9f2cfd49b32661c3019cba3b78cc;p=openldap Revert previous commit, added NT mkvers script --- 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"; -