home *** CD-ROM | disk | FTP | other *** search
- echo off
-
- rem check syntax
- if XX%1==XX goto usage
-
- if XX%2==XX goto usage
- if %2==* goto df_tcd_action
- echo ---------- Turbo c directory is -- %2 --
- if not exist %2\*.* goto bad_name
- echo TCDIR=%2> mct.mac
- goto chk_3
-
- :df_tcd_action
- echo .
- echo ++++++++++ You have to specify the Turbo C directory path
- goto usage
-
- :chk_3
- if XX%3==XX goto df_rtd_msg
- if %3==* goto df_rtd_msg
- echo ---------- r-tree directory is -- %3 --
- if not exist %3\*.* goto bad_name
- echo RTREE=%3>> mct.mac
- goto chk_4
-
- :df_rtd_msg
- echo .
- echo Default r-tree directory in the 'make' files will be used
-
- :chk_4
- if XX%4==XX goto tc15msg
- echo .
- echo ---------------------------------------------------------
- echo This installation procedure assumes Turbo C 1.0 is in use
- echo ---------------------------------------------------------
- echo .
- echo TC10=x>> mct.mac
- goto install
-
- :tc15msg
- echo .
- echo ---------------------------------------------------------
- echo This installation procedure assumes Turbo C 1.5 or later
- echo ---------------------------------------------------------
- echo .
- goto install
-
- :bad_name
- echo ++++++++++ And I can't find it!!!
- echo .
- goto usage
-
- :install
- pause ===== Now go to make the libraries =====
-
- if %1==S goto small
- if %1==s goto small
- if %1==L goto large
- if %1==l goto large
-
- echo ************
- echo SYNTAX ERROR
- echo ************
-
- :usage
- echo . Program to build c-tree library, utilities, and sample programs
- echo . +---------+------+-------+--------+-----+
- echo " | | S or | Turbo | | | "
- echo " | MVAPAPP | | C | r-tree | [x] | "
- echo " | | | path- | path | | "
- echo " | | L | name | | | "
- echo . +---------+------+-------+--------+-----+
- echo . examples:
- echo . MVAPAPP L e:\turboc e:\rt11d2 x
- echo . MVAPAPP L e:\tc
- echo .
- echo . where S = small and L = large memory model
- echo . Turbo C path - if Turbo C is not in the same drive, add drive name
- echo . r-tree path - r-tree main directory
- echo . x - optional. If x is NOT entered, Turbo C v1.5 or later
- echo . will be used, otherwise v1.0 setting will be selected.
- echo . * - === signifies default value will be used ===
- echo .
- echo .......................................................................
- echo The libary and object files are created in directory nAPP.vap
- echo (eg. LAPP.vap for large model)
- echo .......................................................................
- goto done
-
- :small
- ren ..\ctcomm.h ctcomm.sav
- copy ..\novell\ctcomm.h ../v
- if not exist SAPP.vap\*.* md SAPP.vap
- %2\make -DAM=small -DMM=s -fmvapapp.mak
- goto restore
-
- :large
- ren ..\ctcomm.h ctcomm.sav
- copy ..\novell\ctcomm.h ../v
- if not exist LAPP.vap\*.* md LAPP.vap
- %2\make -DAM=large -DMM=l -fmvapapp.mak
- goto restore
-
- :restore
- del ..\ctcomm.h
- ren ..\ctcomm.sav ctcomm.h
-
- :done
- REM if exist mct.mac del mct.mac
-