File: buildmin.cmd

package info (click to toggle)
ipmiutil 3.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,992 kB
  • sloc: ansic: 73,406; sh: 15,281; cpp: 2,245; makefile: 520
file content (36 lines) | stat: -rw-r--r-- 711 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@echo off
REM # buildmin32.cmd
REM #   build ipmiutil for windows in standalone mode (minimal, 32bit)
REM #   without IPMI LAN 2.0 libraries, so no SOL.  Use for bootables.
REM #
REM # First download a copy of getopt.c getopt.h.
REM #   copy getopt.*   util
REM #

REM TODO, prebuild checking:
REM check for getopt.c,h

set | findstr VCINSTALLDIR
if %errorlevel% EQU 1 goto vcerror

echo %LIBPATH% |findstr /C:64 >NUL
if %errorlevel% EQU 0 (
	set MARCH=X64
	set UTMAKE=ipmiutil2-64.mak
) else (
	set MARCH=IX86
	set UTMAKE=ipmiutil2.mak
)

cd util
nmake /nologo -f %UTMAKE% all
cd ..

echo buildmin %UTMAKE% done
goto done

:vcerror
echo Need to first run vcvars.bat

:done