1:: $OpenLDAP$ 2:: This work is part of OpenLDAP Software <http://www.openldap.org/>. 3:: 4:: Copyright 1998-2011 The OpenLDAP Foundation. 5:: All rights reserved. 6:: 7:: Redistribution and use in source and binary forms, with or without 8:: modification, are permitted only as authorized by the OpenLDAP 9:: Public License. 10:: 11:: A copy of this license is available in the file LICENSE in the 12:: top-level directory of the distribution or, alternatively, at 13:: <http://www.OpenLDAP.org/license.html>. 14 15:: 16:: Create a version.c file from build/version.h 17:: 18 19:: usage: mkvers.bat <path/version.h>, <version.c>, <appname>, <static> 20 21copy %1 %2 22(echo. ) >> %2 23(echo #include "portable.h") >> %2 24(echo. ) >> %2 25(echo %4 const char __Version[] =) >> %2 26(echo "@(#) $" OPENLDAP_PACKAGE ": %3 " OPENLDAP_VERSION) >> %2 27(echo " (" __DATE__ " " __TIME__ ") $\n") >> %2 28