home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frostbyte's 1980s DOS Shareware Collection
/
floppyshareware.zip
/
floppyshareware
/
DOOG
/
CBASE09.ZIP
/
BTREE.ZIP
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1989-08-31
|
2KB
|
65 lines
@echo off
rem btree installation batch file-----------------------------------------------
rem #ident "install.bat 1.1 - 89/07/03"
rem check if blkio installed----------------------------------------------------
if exist \tc\include\blkio.h goto blkio
echo The blkio library must be installed first.
goto end
:blkio
rem extract the reference manual------------------------------------------------
if not exist btree.man goto man
echo btree.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 btree.h/a+btclose.c+btcreate.c+btcursor.c+btdelcur.c+btdelete.c+btfirst.c tmp
type tmp | manx -c > btree.man
copy btgetcur.c/a+btgetk.c+btgetlck.c+btinsert.c+btkeycnt.c+btkeysiz.c tmp
type tmp | manx -c >> btree.man
copy btlast.c/a+btlock.c+btnext.c+btopen.c+btprev.c+btsearch.c tmp
type tmp | manx -c >> btree.man
copy btsetbuf.c/a+btsetcur.c+btsetvbu.c+btsync.c tmp
type tmp | manx -c >> btree.man
del tmp
@echo off
rem compile all btree source files----------------------------------------------
echo on
tcc -O -c -mh btclose.c btcreate.c btcursor.c btdelcur.c btdelete.c btfirst.c
tcc -O -c -mh btgetcur.c btgetk.c btgetlck.c btinsert.c btkeycnt.c btkeysiz.c
tcc -O -c -mh btlast.c btlock.c btnext.c btopen.c btprev.c btsearch.c
tcc -O -c -mh btsetbuf.c btsetcur.c btsetvbu.c btsync.c
tcc -O -c -mh btops.c dgops.c kyops.c ndops.c
@echo off
rem build the btree library archive---------------------------------------------
echo on
tlib btree @btree.rsp
@echo off
rem install the btree library---------------------------------------------------
if not exist \tc\lib\btree.lib goto lib
echo \tc\lib\btree.lib exists. ^c to exit, any other key to continue.
pause
:lib
echo on
copy btree.lib \tc\lib\btree.lib
@echo off
if not exist \tc\include\btree.h goto h
echo \tc\include\btree.h exists. ^c to exit, any other key to continue.
pause
:h
echo on
copy btree.h \tc\include\btree.h
@echo off
rem end of btree batch file-----------------------------------------------------
:end