home *** CD-ROM | disk | FTP | other *** search
- @echo off
- $$IF(MULTIPLE_LANGS || TARGET_MAC)
-
- 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(MULTIPLE_LANGS)
- if "%1" == "MAC" goto :Error
- if "%1" == "" goto :Error
- $$ENDIF //MULTIPLE_LANGS
-
- $$ENDIF //MULTIPLE_LANGS||TARGET_MAC
- REM -- First make map file from Microsoft Visual C++ generated resource.h
- echo // MAKEHELP.BAT generated Help Map file. Used by $$ROOT$$.HPJ. >"hlp\$$HM_FILE$$.hm"
- echo. >>"hlp\$$HM_FILE$$.hm"
- echo // Commands (ID_* and IDM_*) >>"hlp\$$HM_FILE$$.hm"
- makehm ID_,HID_,0x10000 IDM_,HIDM_,0x10000 resource.h >>"hlp\$$HM_FILE$$.hm"
- echo. >>"hlp\$$HM_FILE$$.hm"
- echo // Prompts (IDP_*) >>"hlp\$$HM_FILE$$.hm"
- makehm IDP_,HIDP_,0x30000 resource.h >>"hlp\$$HM_FILE$$.hm"
- echo. >>"hlp\$$HM_FILE$$.hm"
- echo // Resources (IDR_*) >>"hlp\$$HM_FILE$$.hm"
- makehm IDR_,HIDR_,0x20000 resource.h >>"hlp\$$HM_FILE$$.hm"
- echo. >>"hlp\$$HM_FILE$$.hm"
- echo // Dialogs (IDD_*) >>"hlp\$$HM_FILE$$.hm"
- makehm IDD_,HIDD_,0x20000 resource.h >>"hlp\$$HM_FILE$$.hm"
- echo. >>"hlp\$$HM_FILE$$.hm"
- echo // Frame Controls (IDW_*) >>"hlp\$$HM_FILE$$.hm"
- makehm IDW_,HIDW_,0x50000 resource.h >>"hlp\$$HM_FILE$$.hm"
- REM -- Make help for Project $$ROOT$$
-
- $$IF(TARGET_INTEL || TARGET_MIPS || TARGET_ALPHA)
- $$IF(TARGET_MAC)
-
- if "%$$HLPARG_MAC$$" == "MAC" goto Mac
-
- :Intel
- if not "%$$HLPARG_MAC$$" == "" goto :Error
- if not "%$$HLPARG_MACPATH$$" == "" goto :Error
- $$ENDIF //TARGET_MAC
-
- echo Building Win32 Help files
- $$IF(MULTIPLE_LANGS)
- start /wait hcrtf -x "hlp\%1\$$root$$.hpj"
- echo.
- if exist Debug\nul copy "hlp\%1\$$root$$.hlp" Debug
- if exist Debug\nul copy "hlp\%1\$$root$$.cnt" Debug
- if exist Release\nul copy "hlp\%1\$$root$$.hlp" Release
- if exist Release\nul copy "hlp\%1\$$root$$.cnt" Release
- $$ELSE //!MULTIPLE_LANGS
- start /wait hcrtf -x "hlp\$$root$$.hpj"
- echo.
- if exist Debug\nul copy "hlp\$$root$$.hlp" Debug
- if exist Debug\nul copy "hlp\$$root$$.cnt" Debug
- if exist Release\nul copy "hlp\$$root$$.hlp" Release
- if exist Release\nul copy "hlp\$$root$$.cnt" Release
- $$ENDIF //MULTIPLE_LANGS
- $$IF(TARGET_MAC)
- goto :done
- $$ELSE //!TARGET_MAC
- echo.
- $$ENDIF //TARGET_MAC
- $$ENDIF //INTEL/MIPS/ALPHA
- $$IF(TARGET_MAC)
-
- $$IF(TARGET_INTEL || TARGET_MIPS || TARGET_ALPHA)
- :Mac
- $$ENDIF //INTEL,MIPS,ALPHA
- echo Building Macintosh Help files
- $$IF(MULTIPLE_LANGS)
- call hc35 "hlp\%1\$$mac_hpj$$.hpj"
- $$ELSE //!MULTIPLE_LANGS
- cd hlp
- call hc35 "$$mac_hpj$$.hpj"
- cd ..
- $$ENDIF //MULTIPLE_LANGS
-
- if %$$HLPARG_MACPATH$$x == x goto :done
- echo Copying to remote machine
- mfile copy -c MSH2 -t HELP "hlp\$$mac_hpj$$.hlp" %$$HLPARG_MACPATH$$
- goto :done
- $$ENDIF //TARGET_MAC
-
- $$// Depending on Mac-targeting and multiple-languages, makehelp takes different args
- $$IF(MULTIPLE_LANGS)
- $$IF(TARGET_MAC)
- $$// Both Mac-targeting & multiple languages
- :Error
- echo Usage MAKEHELP LanguageAbbreviation [MAC [macintosh-path]]
- echo Where macintosh-path is of the form:
- echo ":<MacintoshName>:...:<MacintoshHelpFile>"
- echo And LanguageAbbreviation is one of $$LANG_LIST_SUFFIXES$$
- $$ELSE //!TARGET_MAC
- $$// Multiple languages, NO Mac targeting
- :Error
- echo Usage MAKEHELP LanguageAbbreviation
- echo Where LanguageAbbreviation is one of $$LANG_LIST_SUFFIXES$$
- $$ENDIF //TARGET_MAC
- $$ELSE //!MULTIPLE_LANGS
- $$IF(TARGET_MAC)
- $$// Mac targeting, and NO multiple languages
- :Error
- echo Usage MAKEHELP [MAC [macintosh-path]]
- echo Where macintosh-path is of the form:
- echo ":<MacintoshName>:...:<MacintoshHelpFile>"
- $$ENDIF //TARGET_MAC
- $$ENDIF //MULTIPLE_LANGS
-
- $$IF(TARGET_MAC)
- :done
- echo.
- $$ENDIF //MAC
-