makehelp.bat
资源名称:COM 原理与应用.rar [点击查看]
上传用户:biuytresa
上传日期:2007-12-07
资源大小:721k
文件大小:2k
源码类别:
DNA
开发平台:
Visual C++
- @echo off
- REM -- First make map file from Microsoft Visual C++ generated resource.h
- echo // MAKEHELP.BAT generated Help Map file. Used by OCLIENT.HPJ. >"hlpOCLIENT.hm"
- echo. >>"hlpOCLIENT.hm"
- echo // Commands (ID_* and IDM_*) >>"hlpOCLIENT.hm"
- makehm ID_,HID_,0x10000 IDM_,HIDM_,0x10000 resource.h >>"hlpOCLIENT.hm"
- echo. >>"hlpOCLIENT.hm"
- echo // Prompts (IDP_*) >>"hlpOCLIENT.hm"
- makehm IDP_,HIDP_,0x30000 resource.h >>"hlpOCLIENT.hm"
- echo. >>"hlpOCLIENT.hm"
- echo // Resources (IDR_*) >>"hlpOCLIENT.hm"
- makehm IDR_,HIDR_,0x20000 resource.h >>"hlpOCLIENT.hm"
- echo. >>"hlpOCLIENT.hm"
- echo // Dialogs (IDD_*) >>"hlpOCLIENT.hm"
- makehm IDD_,HIDD_,0x20000 resource.h >>"hlpOCLIENT.hm"
- echo. >>"hlpOCLIENT.hm"
- echo // Frame Controls (IDW_*) >>"hlpOCLIENT.hm"
- makehm IDW_,HIDW_,0x50000 resource.h >>"hlpOCLIENT.hm"
- REM -- Make help for Project OCLIENT
- if "%1" == "?" goto :Error
- if "%1" == "/?" goto :Error
- if "%1" == "-?" goto :Error
- if "%1" == "help" goto :Error
- if "%1" == "-help" goto :Error
- if "%1" == "/help" goto :Error
- if "%1" == "MAC" goto Mac
- :Intel
- if not "%1" == "" goto :Error
- if not "%2" == "" goto :Error
- echo Building Win32 Help files
- start /wait hcrtf -x hlpOCLIENT.hpj
- echo.
- if exist Debugnul if exist hlpoclient.hlp copy "hlpOCLIENT.hlp" Debug
- if exist Debugnul if exist hlpoclient.cnt copy "hlpOCLIENT.cnt" Debug
- if exist Releasenul if exist hlpoclient.hlp copy "hlpOCLIENT.hlp" Release
- if exist Releasenul if exist hlpoclient.cnt copy "hlpOCLIENT.cnt" Release
- if exist UniDebugnul if exist hlpoclient.hlp copy "hlpOCLIENT.hlp" UniDebug
- if exist UniDebugnul if exist hlpoclient.cnt copy "hlpOCLIENT.cnt" UniDebug
- if exist UniReleasenul if exist hlpoclient.hlp copy "hlpOCLIENT.hlp" UniRelease
- if exist UniReleasenul if exist hlpoclient.cnt copy "hlpOCLIENT.cnt" UniRelease
- goto :done
- :Mac
- echo Building Macintosh Help files
- call hc35 hlpOCLIMac.hpj
- if %2x == x goto :done
- REM if exist PMacDbgnul copy "OCLIMac.hlp" PMacDbgOCLIENT.HLP
- REM if exist PMacRelnul copy "OCLIMac.hlp" PMacRelOCLIENT.HLP
- REM if exist MacDbgnul copy "OCLIMac.hlp" MacDbgOCLIENT.HLP
- REM if exist MacRelnul copy "OCLIMac.hlp" MacRelOCLIENT.HLP
- echo Copying to remote machine
- mfile copy -c MSH2 -t HELP "OCLIMac.hlp" %2
- goto :done
- :Error
- echo Usage MAKEHELP [MAC [macintosh-path]]
- echo Where macintosh-path is of the form:
- echo ":<MacintoshName>:...:<MacintoshHelpFile>"
- :done
- echo.