home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
progm
/
cbase.zip
/
CBASE10B.ZIP
/
CBASE.ZIP
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1989-11-08
|
3KB
|
75 lines
@echo off
rem cbase installation batch file-----------------------------------------------
rem #ident "install.bat 1.2 - 89/11/08"
rem check if underlying libraries installed-------------------------------------
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+cbexport.c+cbgetkcu.c tmp
type tmp | manx -c > cbase.man
copy cbgetlck.c/a+cbgetr.c+cbgetrcu.c+cbgetrf.c+cbimport.c+cbinscur.c tmp
type tmp | manx -c >> cbase.man
copy cbinsert.c/a+cbkcurso.c+cbkeyali.c+cbkeyfir.c+cbkeylas.c+cbkeynex.c tmp
type tmp | manx -c >> cbase.man
copy cbkeypre.c/a+cbkeysrc.c+cblock.c+cbopen.c+cbputr.c+cbrcurso.c tmp
type tmp | manx -c >> cbase.man
copy cbreccnt.c/a+cbrecfir.c+cbreclas.c+cbrecnex.c+cbrecpre.c+cbrecsiz.c tmp
type tmp | manx -c >> cbase.man
copy cbsetkcu.c/a+cbsetrcu.c+cbsync.c tmp
type tmp | manx -c >> cbase.man
del tmp
@echo off
rem compile all cbase source files----------------------------------------------
echo on
tcc -O -c -C- -mh cbclose.c cbcreate.c cbdelcur.c cbexport.c cbgetkcu.c cbgetlck.c
tcc -O -c -C- -mh cbgetr.c cbgetrcu.c cbgetrf.c cbimport.c cbinscur.c cbinsert.c
tcc -O -c -C- -mh cbkcurso.c cbkeyali.c cbkeyfir.c cbkeylas.c cbkeynex.c cbkeypre.c
tcc -O -c -C- -mh cbkeysrc.c cblock.c cbopen.c cbputr.c cbrcurso.c cbreccnt.c
tcc -O -c -C- -mh cbrecfir.c cbreclas.c cbrecnex.c cbrecpre.c cbrecsiz.c cbsetkcu.c
tcc -O -c -C- -mh cbsetrcu.c cbsync.c
tcc -O -c -C- -mh cbcmp.c cbexp.c cbimp.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\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
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
rem end of cbase installation batch file----------------------------------------
:end