home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frostbyte's 1980s DOS Shareware Collection
/
floppyshareware.zip
/
floppyshareware
/
DOOG
/
CBASE09.ZIP
/
CBASE.ZIP
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1989-08-31
|
3KB
|
84 lines
@echo off
rem cbase installation batch file-----------------------------------------------
rem #ident "install.bat 1.1 - 89/08/31"
rem check if underlying libraries installed-------------------------------------
if exist \tc\include\blkio.h goto blkio
echo The blkio library must be installed first.
goto end
:blkio
if exist \tc\include\lseq.h goto lseq
echo The lseq library must be installed first.
goto end
:lseq
if exist \tc\include\btree.h goto btree
echo The btree library must be installed first.
goto end
:btree
rem extract the reference manual------------------------------------------------
if not exist cbase.man goto man
echo cbase.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 cbase.h/a+cbclose.c+cbcreate.c+cbdelcur.c+cbgetkcu.c+cbgetlck.c tmp
type tmp | manx -c > cbase.man
copy cbgetr.c/a+cbgetrcu.c+cbgetrf.c+cbinscur.c+cbinsert.c tmp
type tmp | manx -c >> cbase.man
copy cbkcurso.c/a+cbkeyali.c+cbkeyfir.c+cbkeylas.c+cbkeynex.c+cbkeypre.c tmp
type tmp | manx -c >> cbase.man
copy cbkeysrc.c/a+cblock.c+cbopen.c+cbputr.c+cbrcurso.c+cbreccnt.c tmp
type tmp | manx -c >> cbase.man
copy cbrecfir.c/a+cbreclas.c+cbrecnex.c+cbrecpre.c+cbrecsiz.c+cbsetkcu.c tmp
type tmp | manx -c >> cbase.man
copy cbsetrcu.c/a+cbsync.c tmp
type tmp | manx -c >> cbase.man
del tmp
@echo off
rem compile all cbase source files----------------------------------------------
echo on
tcc -O -c -mh cbclose.c cbcreate.c cbdelcur.c cbgetkcu.c cbgetlck.c
tcc -O -c -mh cbgetr.c cbgetrcu.c cbgetrf.c cbinscur.c cbinsert.c
tcc -O -c -mh cbkcurso.c cbkeyali.c cbkeyfir.c cbkeylas.c cbkeynex.c cbkeypre.c
tcc -O -c -mh cbkeysrc.c cblock.c cbopen.c cbputr.c cbrcurso.c cbreccnt.c
tcc -O -c -mh cbrecfir.c cbreclas.c cbrecnex.c cbrecpre.c cbrecsiz.c cbsetkcu.c
tcc -O -c -mh cbsetrcu.c cbsync.c
tcc -O -c -mh cbcmp.c cbops.c
@echo off
rem build the cbase library archive---------------------------------------------
echo on
tlib cbase @cbase.rsp
@echo off
rem install the cbase library---------------------------------------------------
if not exist \tc\lib\cbase.lib goto lib
echo \tc\lib\cbase.lib exists. ^c to exit, any other key to continue.
pause
:lib
echo on
copy cbase.lib \tc\lib\cbase.lib
@echo off
if not exist \tc\include\cbase.h goto h
echo \tc\include\cbase.h exists. ^c to exit, any other key to continue.
pause
:h
echo on
copy cbase.h \tc\include\cbase.h
@echo off
rem compile example program-----------------------------------------------------
echo on
tcc -O -mh cbase.lib btree.lib lseq.lib blkio.lib rolo.c
@echo off
rem end of cbase batch file-----------------------------------------------------
:end