File:  [OS/2 SDKs] / os232sdk / c386 / setenv.cmd
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 12:26:30 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: os2sdk-1990, HEAD
Microsoft OS/2 SDK 2.0 05-30-1990

@echo off
if "%1" == "help" goto help
if "%1" == "HELP" goto help
if "%1" == "/help" goto help
if "%1" == "/HELP" goto help
if "%1" == "/h" goto help
if "%1" == "/H" goto help
if "%1" == "/?" goto help
if "%1" == "/?" goto help
if "%1" == "?" goto help

set _drive=c
if not "%1" == "" set _drive=%1

set _direct2=\sdk20\toolkt20
if not "%2" == "" set _direct2=%2

set _direct3=\sdk20\c386
if not "%3" == "" set _direct3=%3

goto sett

:help
echo This batch file sets the environment variables needed by the
echo 386 compiler, linker, macro assembler, Microsoft editor,
echo and the help systems (QuickHelp and IPF).
echo.
echo The ten variables are:
echo     LIB - points to the c-runtime libraries directory
echo         - and also the toolkit's OS/2 library files
echo     INCLUDE - points to the c-runtime include files
echo             - and also the toolkit's OS/2 include files
echo     PATH - points to the compiler, etc., executables
echo     INIT - points to directory containing the Microsoft editor options file
echo          Not required
echo     TMP - points to the directory to use for compiler and linker
echo           intermediate files.
echo     QH - points to the Quick Help database files
echo     BOOKSHELF - points to the .INF databases for VIEW
echo     HELP - points to online help files for ICONEDIT, FONTEDIT, and
echo          the DLGBOX editor.
echo     IPFC - points to files needed by the IPF compiler
echo     DPATH - points to files needed by the IPF compiler
echo.
echo If you wish to make these changes take effect for all OS/2 
echo sessions, you should add these environment variable statements
echo to your CONFIG.SYS.  In the \SDK20\C386 (default) directory you will
echo find the file CONFIG.ADD for this purpose.
echo
echo The syntax of this batch file is
echo	 setenv [^<drive^> [^<toolkit directory^>] [^<language directory^>]]
echo.
echo Where
echo	 ^<drive^> is the drive the SDK tools are to be installed upon.
echo	 ^<toolkit directory^> is the directory in which the Toolkit
echo		    files will be installed
echo	 ^<language directory^> is the directory in which the Languages
echo		    files will be installed
echo.
echo Example
echo	 setenv c \toolkit \compiler
echo.
echo The ^<drive^> defaults to 'C'
echo	 ^<toolkit directory^> defaults to \SDK20\TOOLKT20
echo	 ^<language directory^> defaults to \SDK20\C386
echo.
goto endd

:sett

SET LIB=.;%_drive%:%_direct3%\LIB;%_drive%:%_direct2%\OS2LIB
SET INCLUDE=.;%_drive%:%_direct3%\INCLUDE;%_drive%:%_direct2%\C\OS2H;%_drive%:%_direct2%\MASM\OS2INC
SET INIT=%_drive%:%_direct3%\BIN;%INIT%
SET TMP=%_drive%:\
SET PATH=.;%_drive%:%_direct3%\BIN;%_drive%:%_direct2%\OS2BIN;%_drive%:%_direct3%\HELP;%path%
SET QH=%_drive%:%_direct3%\HELP
SET BOOKSHELF=%_drive%:%_direct2%\BOOK;%BOOKSHELF%
SET HELP=%_drive%:%_direct2%\OS2HELP;%HELP%
SET IPFC=%_drive%:%_direct2%\IPFC
SET DPATH=%_drive%:%_direct2%\IPFC;%DPATH%

set _drive=
set _direct=
:endd
echo on

unix.superglobalmegacorp.com

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