1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
@ECHO OFF
IF "x%1x" == "xx" (
ECHO Usage: configure "path to MIT Kerberos for Windows SDK"
EXIT /B 1
)
SET KRB5SDK=%~f1
copy /y config.h.w32 config.h > nul
copy /y Makefile.w32 Makefile > nul
setlocal
FOR /F "usebackq tokens=4 delims=[]" %%i in (`findstr /R "^AC_INIT" configure.ac`) DO SET VERSION=%%i
FOR /F "usebackq tokens=1 delims=." %%i in ('%VERSION%') DO SET MAJOR=%%i
FOR /F "usebackq tokens=2 delims=." %%i in ('%VERSION%') DO SET MINOR=%%i
echo #define PACKAGE_BUGREPORT "eagle@eyrie.org" >> config.h
echo #define PACKAGE_NAME "remctl" >> config.h
echo #define PACKAGE_STRING "remctl %MAJOR%.%MINOR%" >> config.h
echo #define PACKAGE_TARNAME "remctl" >> config.h
echo #define PACKAGE_VERSION "%MAJOR%.%MINOR%" >> config.h
echo #define VERSION_MAJOR %MAJOR% >> config.h
echo #define VERSION_MAJOR_STR "%MAJOR%" >> config.h
echo #define VERSION_MINOR %MINOR% >> config.h
echo #define VERSION_MINOR_STR "%MINOR%" >> config.h
|