2 :: This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 :: Copyright 1998-2009 The OpenLDAP Foundation.
5 :: All rights reserved.
7 :: Redistribution and use in source and binary forms, with or without
8 :: modification, are permitted only as authorized by the OpenLDAP
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>.
16 :: Create a version.c file from build/version.h
19 :: usage: mkvers.bat <path/version.h>, <version.c>, <appname>, <static>
23 (echo #include "portable.h") >> %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