summaryrefslogtreecommitdiff
path: root/buildmin.cmd
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-12-14 13:37:21 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-12-14 13:37:21 +0100
commit09863e30b4f27257be0299024d5a0de255f8ea84 (patch)
tree4176d07d460e015deffa29b82a4164561ff413c6 /buildmin.cmd
parent715160edeb4dfc4335f8def440806ad0d5307fec (diff)
parent1847c61e3994e17e1bd793a4fdc9f7860023826b (diff)
Merge branch 'release/3.0.7-1'3.0.7-1
Diffstat (limited to 'buildmin.cmd')
-rw-r--r--buildmin.cmd31
1 files changed, 31 insertions, 0 deletions
diff --git a/buildmin.cmd b/buildmin.cmd
new file mode 100644
index 0000000..bf40503
--- /dev/null
+++ b/buildmin.cmd
@@ -0,0 +1,31 @@
+@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
+
+set UTMAKE=ipmiutil2.mak
+echo %LIBPATH% |findstr /C:64 >NUL
+if %errorlevel% EQU 0 set UTMAKE=ipmiutil2-64.mak
+
+cd util
+nmake /nologo -f %UTMAKE% all
+cd ..
+
+echo buildmin %UTMAKE% done
+goto done
+
+:vcerror
+echo Need to first run vcvars.bat
+
+:done
+