home *** CD-ROM | disk | FTP | other *** search
- $$$loc$$$
- $$$nomsg$$$
- ::@echo off
-
- :set 21
- :set 22
- :string 8
-
- Please enter the serial number found on
- the label of your High C distribution disk.
-
- Serial Number: :endstring
-
- :if 6
- :msg
- :msg
- :msg High C requires approximately 4.5 megabytes of disk space.
- :msg You do not have enough available disk space.
- :msg
- :askyn 21 Do you wish to continue?
- :msg
- :msg
- :endif
-
- :if 21
-
- :if 7
- :msg
- :msg
- :msg WARNING!!! There are existing files and/or sub-directories in the
- :msg target disk directory. This installation process may replace those
- :msg files with High C files.
- :msg
- :askyn 22 Do you wish to continue?
- :msg
- :msg
- :endif
-
- :if 22
-
- echo
- echo
- echo │
- echo │ Installing MetaWare High C from %1 to %2
- echo │
- echo
- echo
-
- :ask1
- if exist %1hc_v17.1 goto dsk1ok
- echo
- echo │
- echo │ The disk in drive %1 is not the first High C diskette.
- echo │ Please put the first High C diskette in drive %1.
- echo │
- pause
- goto ask1
- :dsk1ok
-
- echo │
- echo │ First we insure there are no read only files in the target directory.
- echo │
-
- %1\bin\find %2 -attr- r > nul:
- copy %1\installt.com %2 > nul:
-
- echo │ Copy readme files.
- %1\bin\find %1 -name readme -name readme.* -nr -t -cp %2
- echo │ Create the \bin subdirectory, for all the executable files.
- %1\bin\find %1bin -t -cp %2
-
- echo #include hc386.cnf>%2\bin\hcxref.cnf
-
- rem get the serial number.
-
- :msg
- :msg
- :msg Each MetaWare compiler is assigned a serial number.
- :msg This serial number is required when you call MetaWare Technical
- :msg Support. To make it easier for you to find this number, the
- :msg compiler will display it each time it is run.
-
- echo $$$loc$$$:serial>%2\bin\xpq87.tmp
- if exist %2\bin\serialno del %2\bin\serialno > nul:
- %2\installt **;%2\bin\xpq87.tmp;%2\bin\serialno
- if errorlevel 1 goto finis
- if exist %2\bin\xpq87.tmp del %2\bin\xpq87.tmp > nul:
-
- :msg If you purchased the MetaWare Debugger, you can choose to
- :msg install it along with the compiler.
- :msg
- :askyn 20 Would you like to install the debugger along with the compiler?
-
- :ask2
- echo ┌────────────────────────────────────────────────────────────────────┐
- echo │ Place compiler diskette TWO in your %1 drive. │
- echo └────────────────────────────────────────────────────────────────────┘
- pause
- if exist %1hc_v17.2 goto dsk2ok
- echo
- echo │
- echo │ The disk in drive %1 is not the second High C diskette.
- echo │ Please put the second High C diskette in drive %1.
- echo │
- goto ask2
- :dsk2ok
-
- echo │
- echo │ Thank you.
- echo │
-
- echo │ Copy more programs to the \bin subdirectory.
- %2\bin\find %1\bin -t -cp %2
- %2\bin\config %2\bin\hcd386p.exe <%2\bin\serialno >nul
- %2\bin\config %2\bin\hcd386.exe <%2\bin\serialno >nul
- del %2\bin\serialno > nul:
-
- :ask3
- echo ┌────────────────────────────────────────────────────────────────────┐
- echo │ Place compiler diskette THREE in your %1 drive. │
- echo └────────────────────────────────────────────────────────────────────┘
- pause
- if exist %1hc_v17.3 goto dsk3ok
- echo
- echo │
- echo │ The disk in drive %1 is not the third High C diskette.
- echo │ Please put the third High C diskette in drive %1.
- echo │
- goto ask3
- :dsk3ok
-
- echo │
- echo │ Thank you.
- echo │
-
- echo │ Copy more programs to the \bin subdirectory.
- %2\bin\find %1\bin -t -cp %2
- copy %2\bin\hc386.exe %2\bin\hcxref.exe > nul:
- echo │ Copy Weitek ABACUS support files to the \weitek subdirectory.
- %2\bin\find %1weitek -cp %2 -t
-
- :ask4
- echo ┌────────────────────────────────────────────────────────────────────┐
- echo │ Place compiler diskette FOUR in your %1 drive. │
- echo └────────────────────────────────────────────────────────────────────┘
- pause
-
- if exist %1hc_v17.4 goto dsk4ok
- echo
- echo │
- echo │ The disk in drive %1 is not the fourth High C diskette.
- echo │ Please put the fourth High C diskette in drive %1.
- echo │
- goto ask4
- :dsk4ok
-
- echo │
- echo │ Thank you.
- echo │
-
- echo │ Copy the demo programs to the \demos subdirectory.
- %2\bin\find %1demos -cp %2 -t
- echo │ Copy other files to the \etc subdirectory.
- %2\bin\find %1etc -cp %2 -t
- echo │ Copy example programs to the \examples subdirectory.
- %2\bin\find %1examples -cp %2 -t
- echo │ Copy the include files to the \inc subdirectory.
- %2\bin\find %1inc -cp %2 -t
- echo │ Copy selected library source code to the \lib subdirectory.
- %2\bin\find %1lib -cp %2 -t
- echo │ Copy the object module libraries to the \small subdirectory.
- %2\bin\find %1small -cp %2 -t
-
- echo $$$thisdir$$$>%2\bin\xpq87.tmp
- echo :=5>>%2\bin\xpq87.tmp
- %2\installt **;%2\bin\xpq87.tmp;%2\bin\serialno
- if errorlevel 1 goto finis
- del %2\installt.com > nul:
- del %2\bin\xpq87.tmp > nul:
-
- %2\bin\autocfig %2\bin\hcd386.exe > nul:
-
- echo ┌────────────────────────────────────────────────────────────────────┐
- echo │ │
- echo │ Installation of the High C 386 Locally Optimizing Compiler, │
- echo │ libraries, and utilities is complete. │
- echo │ │
- echo │ Both the protected-mode-hosted and real-mode-hosted compilers │
- echo │ have been installed. By default, the protected-mode-hosted │
- echo │ compiler will be used. See the installation guide for a │
- echo │ discussion of how to switch between the protected- and real- │
- echo │ mode-hosted compilers. │
- echo │ │
- echo │ Now you can run "bin\DEMO" for some sample compilations. │
- echo │ │
- echo │ You should include │
- type %2\bin\serialno
- del %2\bin\serialno > nul:
- echo │ in your autoexec.bat PATH= command. │
- echo │ │
- echo │ To modify the configuration file, edit bin\hc386set.cnf │
- echo │ │
- echo └────────────────────────────────────────────────────────────────────┘
-
- :if 20
- :askdbg
- echo ┌────────────────────────────────────────────────────────────────────┐
- echo │ Place the Debugger disk in your %1 drive. │
- echo └────────────────────────────────────────────────────────────────────┘
- pause
-
- if exist %1mw_db.1 goto dbgdskok
- echo
- echo │
- echo │ The disk in drive %1 is not the Debugger diskette.
- echo │ Please put the Debugger diskette in drive %1.
- echo │
- goto askdbg
- :dbgdskok
-
- echo │
- echo │ Thank you.
- echo │
-
- %1install CONTINUE
- goto finis
- :endif
-
- :ifn 20
- goto finis
- :endif
-
-
- :finis
- :endif 22
- :endif 21
- if exist %1cleanup.bat %1cleanup %1 %2\
-