2 :: Copyright 1998-2003 The OpenLDAP Foundation.
3 :: All rights reserved.
5 :: Redistribution and use in source and binary forms, with or without
6 :: modification, are permitted only as authorized by the OpenLDAP
9 :: A copy of this license is available in the file LICENSE in the
10 :: top-level directory of the distribution or, alternatively, at
11 :: <http://www.OpenLDAP.org/license.html>.
14 :: Create a version.c file from build/version.h
17 :: usage: mkvers.bat <path/version.h>, <version.c>, <appname>, <static>
21 (echo #include "portable.h") >> %2
23 (echo %4 const char __Version[] =) >> %2
24 (echo "@(#) $" OPENLDAP_PACKAGE ": %3 " OPENLDAP_VERSION) >> %2
25 (echo " (" __DATE__ " " __TIME__ ") $\n") >> %2
26 (echo "\t%USERNAME%@%COMPUTERNAME% %CD:\=/%\n";) >> %2