home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frostbyte's 1980s DOS Shareware Collection
/
floppyshareware.zip
/
floppyshareware
/
DOOG
/
CBASE09.ZIP
/
BLKIO10.ZIP
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1989-08-30
|
3KB
|
80 lines
@echo off
rem blkio installation batch file-----------------------------------------------
rem #ident "install.bat 1.2 - 89/08/29"
rem ----------------------------------------------------------------------------
rem This batch file is written for use with Borland Turbo C. To convert it for
rem use with another compiler, make the following changes:
rem 1. Replace \tc\include with the include directory used by the
rem new compiler.
rem 2. Replace \tc\lib with the library directory used by the new
rem compiler.
rem 3. Replace tcc with the command to invoke the compiler being used,
rem replacing the switches also, if necessary. -O is the optimize
rem option and -c means compile but don't link. -m_ specifies the
rem desired memory model, h here for huge.
rem 4. The command to build the library archive from the object modules
rem may vary more drastically. Turbo C used the tlib command with
rem what Borland refers to as a response file. This response file,
rem blkio.rsp, contains a list of all the object modules in the library.
rem ----------------------------------------------------------------------------
rem install boolean header file-------------------------------------------------
rem
if not exist \tc\include\bool.h goto bool
echo \tc\include\bool.h exists. ^c to exit, any other key to continue.
pause
:bool
echo on
copy bool.h \tc\include\bool.h
@echo off
rem extract the reference manual------------------------------------------------
if not exist blkio.man goto man
echo blkio.man exists. ^c to exit, any other key to continue.
pause
:man
if not exist tmp goto tmp
echo tmp exists. ^c to exit, any other key to continue.
pause
:tmp
echo on
copy blkio.h/a+bclose.c+bexit.c+bflpop.c+bflpush.c+bflush.c+bgetb.c tmp
type tmp | manx -c > blkio.man
copy bgetbf.c/a+bgeth.c+bgethf.c+bopen.c+bputb.c+bputbf.c tmp
type tmp | manx -c >> blkio.man
copy bputh.c/a+bputhf.c+bsetbuf.c+bsetvbuf.c+bsync.c+lockb.c tmp
type tmp | manx -c >> blkio.man
del tmp
@echo off
rem compile all blkio source files----------------------------------------------
echo on
tcc -O -c -mh bclose.c bexit.c bflpop.c bflpush.c bflush.c bgetb.c
tcc -O -c -mh bgetbf.c bgeth.c bgethf.c bopen.c bputb.c bputbf.c
tcc -O -c -mh bputh.c bputhf.c bsetbuf.c bsetvbuf.c bsync.c lockb.c
tcc -O -c -mh bops.c buops.c btmp.c
@echo off
rem build the blkio library archive---------------------------------------------
echo on
tlib blkio @blkio.rsp
@echo off
rem install the blkio library---------------------------------------------------
if not exist \tc\lib\blkio.lib goto lib
echo \tc\lib\blkio.lib exists. ^c to exit, any other key to continue.
pause
:lib
echo on
copy blkio.lib \tc\lib\blkio.lib
@echo off
if not exist \tc\include\blkio.h goto h
echo \tc\include\blkio.h exists. ^c to exit, any other key to continue.
pause
:h
echo on
copy blkio.h \tc\include\blkio.h
@echo off