home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 22 gnu
/
22-gnu.zip
/
flexpp.zip
/
FLEX
/
INSTALL.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-10-21
|
1KB
|
65 lines
echo off
REM install flex++, Gregor Buehler, 6.10.94
REM installs EMX Version if possible.
REM else installs standalone.
REM If you want to run under RSX adapt
REM 'emx' files appropriately.
REM try emx version
if not exist \emx\bin\.. goto install_standalone
if exist \emx\bin\flex.exe del \emx\bin\flex.exe
copy flex.exe \emx\bin
:bin_ok
if not exist \emx\lib\.. goto lib_not_ok
if exist \emx\lib\flexskel.cc del \emx\lib\flexskel.cc
copy flexskel.cc \emx\lib
goto lib_ok
:lib_not_ok
REM cleanup
del \emx\bin\flex.exe
goto install_standalone
:lib_ok
if not exist \emx\include\.. goto inc_not_ok
if exist \emx\include\flexskel.h del \emx\include\flexskel.h
copy flexskel.h \emx\include
goto inc_ok
:inc_not_ok
REM cleanup
del \emx\bin\flex.exe
del \emx\lib\flexskel.cc
goto install_standalone
:inc_ok
if not exist \emx\book\.. goto book_not_ok
if exist \emx\book\flexppm.txt del \emx\book\flexppm.txt
copy flexppm.txt \emx\book
echo EMX Version of flex++ installed
goto end
:book_not_ok
REM cleanup
del \emx\bin\flex.exe
del \emx\lib\flexskel.cc
del \emx\include\flexskel.h
goto install_standalone
:install_standalone
echo EMX not found, installing standalone
del flex.exe
rename flexsta.exe flex.exe
echo Standalone OS/2 & DOS protected mode version of flex++ installed
:end