summaryrefslogtreecommitdiff
path: root/win/makehelp.bat
diff options
context:
space:
mode:
authordocwhat1999-11-14 06:43:18 +0000
committerdocwhat1999-11-14 06:43:18 +0000
commitd71eec8062e852e56f03102ba4b4e87dc485821d (patch)
tree452368ad0e7e24627e517a0c88c2508d02cea6dc /win/makehelp.bat
parent2046090b7ce8dd901ce43e650be5acf44016d714 (diff)
Initial revision
git-svn-id: http://svn.leocad.org/trunk@2 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'win/makehelp.bat')
-rw-r--r--win/makehelp.bat39
1 files changed, 39 insertions, 0 deletions
diff --git a/win/makehelp.bat b/win/makehelp.bat
new file mode 100644
index 0000000..86c124b
--- /dev/null
+++ b/win/makehelp.bat
@@ -0,0 +1,39 @@
+@echo off
+REM -- First make map file from Microsoft Visual C++ generated resource.h
+echo // MAKEHELP.BAT generated Help Map file. Used by LEOCAD.HPJ. >"hlp\LeoCAD.hm"
+echo. >>"hlp\LeoCAD.hm"
+echo // Commands (ID_* and IDM_*) >>"hlp\LeoCAD.hm"
+makehm ID_,HID_,0x10000 IDM_,HIDM_,0x10000 resource.h >>"hlp\LeoCAD.hm"
+echo. >>"hlp\LeoCAD.hm"
+echo // Prompts (IDP_*) >>"hlp\LeoCAD.hm"
+makehm IDP_,HIDP_,0x30000 resource.h >>"hlp\LeoCAD.hm"
+echo. >>"hlp\LeoCAD.hm"
+echo // Resources (IDR_*) >>"hlp\LeoCAD.hm"
+makehm IDR_,HIDR_,0x20000 resource.h >>"hlp\LeoCAD.hm"
+echo. >>"hlp\LeoCAD.hm"
+echo // Dialogs (IDD_*) >>"hlp\LeoCAD.hm"
+makehm IDD_,HIDD_,0x20000 resource.h >>"hlp\LeoCAD.hm"
+echo. >>"hlp\LeoCAD.hm"
+echo // Frame Controls (IDW_*) >>"hlp\LeoCAD.hm"
+makehm IDW_,HIDW_,0x50000 resource.h >>"hlp\LeoCAD.hm"
+REM -- Make help for Project LEOCAD
+
+
+echo Building Win32 Help files
+start /wait hcw /C /E /M "hlp\LeoCAD.hpj"
+if errorlevel 1 goto :Error
+if not exist "hlp\LeoCAD.hlp" goto :Error
+if not exist "hlp\LeoCAD.cnt" goto :Error
+echo.
+if exist Debug\nul copy "hlp\LeoCAD.hlp" Debug
+if exist Debug\nul copy "hlp\LeoCAD.cnt" Debug
+if exist Release\nul copy "hlp\LeoCAD.hlp" Release
+if exist Release\nul copy "hlp\LeoCAD.cnt" Release
+echo.
+goto :done
+
+:Error
+echo hlp\LeoCAD.hpj(1) : error: Problem encountered creating help file
+
+:done
+echo.