]> git.sur5r.net Git - openldap/blob - build/mkvers.bat
60af9e13bd5322046a1cc32e2fba6c840a58d0b2
[openldap] / build / mkvers.bat
1 :: $OpenLDAP$
2 :: This work is part of OpenLDAP Software <http://www.openldap.org/>.
3 ::
4 :: Copyright 1998-2017 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
21 copy %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 (echo "\t%USERNAME%@%COMPUTERNAME% %CD:\=/%\n";) >> %2