Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.4 KiB

  1. @echo off
  2. REM -- First make map file from Microsoft Visual C++ generated resource.h
  3. echo // MAKEHELP.BAT generated Help Map file. Used by OCLIENT.HPJ. >"hlp\OCLIENT.hm"
  4. echo. >>"hlp\OCLIENT.hm"
  5. echo // Commands (ID_* and IDM_*) >>"hlp\OCLIENT.hm"
  6. makehm ID_,HID_,0x10000 IDM_,HIDM_,0x10000 resource.h >>"hlp\OCLIENT.hm"
  7. echo. >>"hlp\OCLIENT.hm"
  8. echo // Prompts (IDP_*) >>"hlp\OCLIENT.hm"
  9. makehm IDP_,HIDP_,0x30000 resource.h >>"hlp\OCLIENT.hm"
  10. echo. >>"hlp\OCLIENT.hm"
  11. echo // Resources (IDR_*) >>"hlp\OCLIENT.hm"
  12. makehm IDR_,HIDR_,0x20000 resource.h >>"hlp\OCLIENT.hm"
  13. echo. >>"hlp\OCLIENT.hm"
  14. echo // Dialogs (IDD_*) >>"hlp\OCLIENT.hm"
  15. makehm IDD_,HIDD_,0x20000 resource.h >>"hlp\OCLIENT.hm"
  16. echo. >>"hlp\OCLIENT.hm"
  17. echo // Frame Controls (IDW_*) >>"hlp\OCLIENT.hm"
  18. makehm IDW_,HIDW_,0x50000 resource.h >>"hlp\OCLIENT.hm"
  19. REM -- Make help for Project OCLIENT
  20. if "%1" == "?" goto :Error
  21. if "%1" == "/?" goto :Error
  22. if "%1" == "-?" goto :Error
  23. if "%1" == "help" goto :Error
  24. if "%1" == "-help" goto :Error
  25. if "%1" == "/help" goto :Error
  26. if "%1" == "MAC" goto Mac
  27. :Intel
  28. if not "%1" == "" goto :Error
  29. if not "%2" == "" goto :Error
  30. echo Building Win32 Help files
  31. start /wait hcrtf -x hlp\OCLIENT.hpj
  32. echo.
  33. if exist Debug\nul if exist hlp\oclient.hlp copy "hlp\OCLIENT.hlp" Debug
  34. if exist Debug\nul if exist hlp\oclient.cnt copy "hlp\OCLIENT.cnt" Debug
  35. if exist Release\nul if exist hlp\oclient.hlp copy "hlp\OCLIENT.hlp" Release
  36. if exist Release\nul if exist hlp\oclient.cnt copy "hlp\OCLIENT.cnt" Release
  37. if exist UniDebug\nul if exist hlp\oclient.hlp copy "hlp\OCLIENT.hlp" UniDebug
  38. if exist UniDebug\nul if exist hlp\oclient.cnt copy "hlp\OCLIENT.cnt" UniDebug
  39. if exist UniRelease\nul if exist hlp\oclient.hlp copy "hlp\OCLIENT.hlp" UniRelease
  40. if exist UniRelease\nul if exist hlp\oclient.cnt copy "hlp\OCLIENT.cnt" UniRelease
  41. goto :done
  42. :Mac
  43. echo Building Macintosh Help files
  44. call hc35 hlp\OCLIMac.hpj
  45. if %2x == x goto :done
  46. REM if exist PMacDbg\nul copy "OCLIMac.hlp" PMacDbg\OCLIENT.HLP
  47. REM if exist PMacRel\nul copy "OCLIMac.hlp" PMacRel\OCLIENT.HLP
  48. REM if exist MacDbg\nul copy "OCLIMac.hlp" MacDbg\OCLIENT.HLP
  49. REM if exist MacRel\nul copy "OCLIMac.hlp" MacRel\OCLIENT.HLP
  50. echo Copying to remote machine
  51. mfile copy -c MSH2 -t HELP "OCLIMac.hlp" %2
  52. goto :done
  53. :Error
  54. echo Usage MAKEHELP [MAC [macintosh-path]]
  55. echo Where macintosh-path is of the form:
  56. echo ":<MacintoshName>:...:<MacintoshHelpFile>"
  57. :done
  58. echo.