1@echo off 2echo #ifndef CONFIG_H>config.h 3echo #define CONFIG_H>>config.h 4 5rem Tarballs have a .svn-revision for identification 6if not exist .svn-revision goto svn1 7FOR /F %%i IN (.svn-revision) DO set svnv=%%i 8goto :foundsvnversion 9 10:svn1 11rem Try to get version from a SVN working copy, svnversion must be in path 12set svnv=exported 13call svnversion >nul 2>&1 14if errorlevel 1 goto nosvnversion 15FOR /F %%i IN ('svnversion src') DO set svnv=%%i 16if %svnv%==exported goto nosvnversion 17if %svnv%==Unversioned goto nosvnversion 18 19:foundsvnversion 20echo SVNDATE is %svnv% 21echo #define SVNDATE "rev. %svnv%">>config.h 22echo #define VERSION "SVN">>config.h 23echo #define __PRERELEASE__>>config.h 24goto finish 25 26:nosvnversion 27echo release build, version from ^<common/ClientVersion.h^> 28echo #include ^<src/include/common/ClientVersion.h^> >>config.h 29 30:finish 31echo #define CRYPTOPP_INCLUDE_PREFIX ../cryptopp>>config.h 32echo #define PACKAGE "amule">>config.h 33echo #define HAVE_ERRNO_H>>config.h 34echo #define HAVE_STRERROR>>config.h 35echo #endif>>config.h 36