source: web/old/remctl-2.14/configure.bat @ f6f3e91

web
Last change on this file since f6f3e91 was f6f3e91, checked in by Jessica B. Hamrick <jhamrick@…>, 15 years ago

Preserve directory hierarchy (not sure what happened to it)

  • Property mode set to 100644
File size: 945 bytes
Line 
1@ECHO OFF
2IF "x%1x" == "xx" (
3        ECHO Usage: configure "path to MIT Kerberos for Windows SDK"
4        EXIT /B 1
5)
6SET KRB5SDK=%~f1
7
8copy /y config.h.w32 config.h > nul
9copy /y Makefile.w32 Makefile > nul
10
11setlocal
12FOR /F "usebackq tokens=2 delims='=" %%i in (`findstr /R "^PACKAGE_VERSION=" configure`) DO SET VERSION=%%i
13FOR /F "usebackq tokens=1 delims=." %%i in ('%VERSION%') DO SET MAJOR=%%i
14FOR /F "usebackq tokens=2 delims=." %%i in ('%VERSION%') DO SET MINOR=%%i
15
16echo #define PACKAGE_BUGREPORT "rra@stanford.edu" >> config.h
17echo #define PACKAGE_NAME "remctl" >> config.h
18echo #define PACKAGE_STRING "remctl %MAJOR%.%MINOR%" >> config.h
19echo #define PACKAGE_TARNAME "remctl" >> config.h
20echo #define PACKAGE_VERSION "%MAJOR%.%MINOR%" >> config.h
21echo #define VERSION_MAJOR %MAJOR% >> config.h
22echo #define VERSION_MAJOR_STR "%MAJOR%" >> config.h
23echo #define VERSION_MINOR %MINOR% >> config.h
24echo #define VERSION_MINOR_STR "%MINOR%" >> config.h
Note: See TracBrowser for help on using the repository browser.