home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
cment.zip
/
CXX2EXE.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-05-19
|
1KB
|
33 lines
/******************************************************************************\
* *
* Compile .CXX file to .EXE *
* Copyright (C) 1994, The Masterpiece Software Company *
* *
\******************************************************************************/
cxx = Value(CXX,,OS2ENVIRONMENT);
axx = Arg(1);
If cxx = ''
Then cxx = 'ICC.EXE';
Do ii = 1 to Words(cxx); /* Append prelisted .OBJ and .LIB */
aa = Translate(Word(cxx,ii));
If Pos('.OBJ',aa) > 0,
| Pos('.LIB',aa) > 0
Then Do;
axx = axx || ' ' || Word(cxx,ii);
cxx = DelWord(cxx,ii,1);
End;
End;
Say ;
Say '====>' Date('O') Time() cxx axx '. . .';
'@'||cxx axx '2>&1';
'@DEL' Left(Arg(1),Pos('.',Arg(1))) || 'OBJ > NUL 2> NUL';
Exit 0;