home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Meeting Pearls 3
/
Meeting_Pearls_III.iso
/
SYS
/
Rexx
/
FastJPEG.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-06-21
|
2KB
|
80 lines
/* */
/* $VER: FastJPEG 1.0 (21.6.94) */
/* */
/* checks for AGA or ECS and calls FJPEG_AGA or FJPEG_ECS */
/* (C) 1994 by Bernhard Möllemann */
/* distribution is allowed only on the CD "Meeting Pearls" */
parse arg line
Address Command
Options Results
/* Trace R */
ccres=CheckChips(AGA)
if ( ccres>=5 ) then
'FJPEG_ECS 'line
else
'FJPEG_AGA 'line
return
Procedure: CheckChips
if ( Find(line,'AGA') ) then
lookforchip='AGA'
else if Find(line,'ECS') then
lookforchip='ECS'
else if ( line~='' ) then do
say "can not check for "line
return 10
end; else
lookforchip=''
retval=0;
if ( lookforchip~='' ) then do
'ShowConfig >T:__scout_'Pragma('I')
if ( RC~=0 ) then do
say "ShowConfig not found"
return 10
end
if ( Open(scout,'T:__scout_'Pragma('I'),'R') ) then do
do while ( eof(scout)=0 )
ln=readln(scout)
select
when ( Left(ln,13)='CUSTOM CHIPS:' ) then do
haschip=0
select
when ( lookforchip='AGA' & Index(ln,'AGA')>0) then
haschip=1
when ( lookforchip='ECS' & ( Index(ln,'AGA')>0 | Index(ln,'ECS')>0 ) ) then
haschip=1
otherwise ;
end
if ( ~haschip ) then
retval=5
end
otherwise ;
end
end
call Close(scout)
'Delete T:__scout_'Pragma('I')' QUIET'
end; else do
say "can not open tmpfile"
return 10
end
end
return retval