Annotation of os232sdk/c386/setenv.cmd, revision 1.1.1.1

1.1       root        1: @echo off
                      2: if "%1" == "help" goto help
                      3: if "%1" == "HELP" goto help
                      4: if "%1" == "/help" goto help
                      5: if "%1" == "/HELP" goto help
                      6: if "%1" == "/h" goto help
                      7: if "%1" == "/H" goto help
                      8: if "%1" == "/?" goto help
                      9: if "%1" == "/?" goto help
                     10: if "%1" == "?" goto help
                     11: 
                     12: set _drive=c
                     13: if not "%1" == "" set _drive=%1
                     14: 
                     15: set _direct2=\sdk20\toolkt20
                     16: if not "%2" == "" set _direct2=%2
                     17: 
                     18: set _direct3=\sdk20\c386
                     19: if not "%3" == "" set _direct3=%3
                     20: 
                     21: goto sett
                     22: 
                     23: :help
                     24: echo This batch file sets the environment variables needed by the
                     25: echo 386 compiler, linker, macro assembler, Microsoft editor,
                     26: echo and the help systems (QuickHelp and IPF).
                     27: echo.
                     28: echo The ten variables are:
                     29: echo     LIB - points to the c-runtime libraries directory
                     30: echo         - and also the toolkit's OS/2 library files
                     31: echo     INCLUDE - points to the c-runtime include files
                     32: echo             - and also the toolkit's OS/2 include files
                     33: echo     PATH - points to the compiler, etc., executables
                     34: echo     INIT - points to directory containing the Microsoft editor options file
                     35: echo          Not required
                     36: echo     TMP - points to the directory to use for compiler and linker
                     37: echo           intermediate files.
                     38: echo     QH - points to the Quick Help database files
                     39: echo     BOOKSHELF - points to the .INF databases for VIEW
                     40: echo     HELP - points to online help files for ICONEDIT, FONTEDIT, and
                     41: echo          the DLGBOX editor.
                     42: echo     IPFC - points to files needed by the IPF compiler
                     43: echo     DPATH - points to files needed by the IPF compiler
                     44: echo.
                     45: echo If you wish to make these changes take effect for all OS/2 
                     46: echo sessions, you should add these environment variable statements
                     47: echo to your CONFIG.SYS.  In the \SDK20\C386 (default) directory you will
                     48: echo find the file CONFIG.ADD for this purpose.
                     49: echo
                     50: echo The syntax of this batch file is
                     51: echo    setenv [^<drive^> [^<toolkit directory^>] [^<language directory^>]]
                     52: echo.
                     53: echo Where
                     54: echo    ^<drive^> is the drive the SDK tools are to be installed upon.
                     55: echo    ^<toolkit directory^> is the directory in which the Toolkit
                     56: echo               files will be installed
                     57: echo    ^<language directory^> is the directory in which the Languages
                     58: echo               files will be installed
                     59: echo.
                     60: echo Example
                     61: echo    setenv c \toolkit \compiler
                     62: echo.
                     63: echo The ^<drive^> defaults to 'C'
                     64: echo    ^<toolkit directory^> defaults to \SDK20\TOOLKT20
                     65: echo    ^<language directory^> defaults to \SDK20\C386
                     66: echo.
                     67: goto endd
                     68: 
                     69: :sett
                     70: 
                     71: SET LIB=.;%_drive%:%_direct3%\LIB;%_drive%:%_direct2%\OS2LIB
                     72: SET INCLUDE=.;%_drive%:%_direct3%\INCLUDE;%_drive%:%_direct2%\C\OS2H;%_drive%:%_direct2%\MASM\OS2INC
                     73: SET INIT=%_drive%:%_direct3%\BIN;%INIT%
                     74: SET TMP=%_drive%:\
                     75: SET PATH=.;%_drive%:%_direct3%\BIN;%_drive%:%_direct2%\OS2BIN;%_drive%:%_direct3%\HELP;%path%
                     76: SET QH=%_drive%:%_direct3%\HELP
                     77: SET BOOKSHELF=%_drive%:%_direct2%\BOOK;%BOOKSHELF%
                     78: SET HELP=%_drive%:%_direct2%\OS2HELP;%HELP%
                     79: SET IPFC=%_drive%:%_direct2%\IPFC
                     80: SET DPATH=%_drive%:%_direct2%\IPFC;%DPATH%
                     81: 
                     82: set _drive=
                     83: set _direct=
                     84: :endd
                     85: echo on

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.