home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magazyn Exec 3
/
CD_Magazyn_EXEC_nr_3.iso
/
Recent
/
util
/
misc
/
warpvers06.lha
/
warpvers
/
warpvers.rexx
< prev
Wrap
OS/2 REXX Batch file
|
2000-07-20
|
4KB
|
137 lines
/*
** $VER: warpvers.rexx 0.6 (20.7.00) Rolf Max Rotvel
*/
address command
call addlib('rexxsupport.library', 0, -30, 0)
tmpfile = 't:warpvers.tmp'
tmpfile2 = 't:warpvers.tmp2'
call delete(tmpfile)
call delete(tmpfile2)
say
say 'WarpOS library versions:'
say getit('libs:powerpc.library')
say getit('libs:warp.library')
say getit('libs:warphw.library')||gethw('libs:warphw.library')
say getit('libs:ppc.library')
say
say 'WarpOS env var settings:'
say getit('powerpc/crashfile', 'env')
say getit('powerpc/alertfile', 'env')
say getit('powerpc/memprot', 'env')
say getit('powerpc/hidewarning', 'env')
say getit('powerpc/force', 'env')
say getit('powerpc/nopatch', 'env')
say getit('powerpc/earlyterm', 'env')
say getit('powerpc/gfxaddr', 'env')
say getit('powerpc/debug', 'env')
say getit('powerpc/terminator', 'env')
say getit('powerpc/seginfo', 'env')
say
say 'Warp3D library versions:'
say getit('libs:warp3d.library')
say getit('libs:warp3dppc.library')
'list libs:warp3d ALL FILES LFORMAT %s%s TO 'tmpfile2
if open('tmp2', tmpfile2, 'r') then do
gfxdriver? = 0
hwdriver? = 0
do forever
line = readln('tmp2')
if line = '' then leave
say getit(line)
chk = upper(line)
if pos('/GFXDRIVERS/', chk) > 0 then gfxdriver? = 1
if pos('/HWDRIVERS/', chk) > 0 then hwdriver? = 1
end
call close('tmp2')
call delete(tmpfile2)
if ~gfxdriver? then say ' No Warp3D GFX driver found'
if ~hwdriver? then say ' No Warp3D HW driver found'
end
else say ' No Warp3D HW or GFX drivers found'
say
say 'Warp3D env var settings:'
say getit('warp3d/cpudriver', 'env')
say getit('warp3d/queuesize', 'env')
say getit('warp3d/cybergfx/keeplock', 'env')
say getit('warp3d/cybergfx/forbid', 'env')
say getit('warp3d/cybergfx/disable', 'env')
say getit('warp3d/permedia2/dither', 'env')
say getit('warp3d/virge/fog', 'env')
say getit('warp3d/virge/pass24', 'env')
say getit('warp3d/virge/swap', 'env')
say getit('warp3d/virge/fogsubdivide', 'env')
say getit('warp3d/virge/texsubdivide', 'env')
say getit('warp3d/virge/fastfilter', 'env')
say
say 'StormMesa library versions:'
say getit('libs:agl.library')
say getit('libs:agle.library')
say getit('libs:aglsmap.library')
say getit('libs:aglu.library')
say getit('libs:aglut.library')
say getit('libs:aglppc.library')
say getit('libs:agleppc.library')
say getit('libs:aglsmapppc.library')
say getit('libs:agluppc.library')
say getit('libs:aglutppc.library')
say
say 'StormMesa env var settings:'
say getit('mesa/debug', 'env')
say getit('mesa/direct', 'env')
say getit('mesa/nohw', 'env')
say getit('mesa/force_db', 'env')
say getit('mesa/force_ir', 'env')
say getit('mesa/force_fs', 'env')
say getit('mesa/fast', 'env')
say getit('mesa/veryfast', 'env')
say getit('mesa/stats', 'env')
say getit('mesa/noclamp', 'env')
say getit('mesa/nicefog', 'env')
say getit('mesa/nicetex', 'env')
say getit('mesa/nohwlines', 'env')
say
say 'GLUT env var settings:'
say getit('glut/icon', 'env')
say getit('glut/force_db', 'env')
say getit('glut/force_ir', 'env')
say getit('glut/force_fs', 'env')
say
exit
GETIT:
parse arg file, mode
if mode ~= '' then mode = 'env:'
if ~exists(mode||file) then do
if mode = 'env:' then return ' 'file' not found'
parse var file 'libs:' file
return ' 'file' not found'
end
if mode ~= 'env:' then 'version FILE FULL 'file' >'tmpfile
else 'getenv 'file' >'tmpfile
if ~open('tmp', tmpfile, 'r') then return ' Error!'
txt = translate(readch('tmp', 1000), ' ', '0a'x)
call close('tmp')
call delete(tmpfile)
if mode = 'env:' then return ' 'file' = 'txt
else return ' 'txt
GETHW:
fs = word(statef(arg(1)), 2)
hw = 'Board = '
select
when fs = 1392 then hw = hw'BlizzardPPC'
when fs = 1396 then hw = hw'CyberStormPPC'
when fs = 1568 then hw = hw'P5DeveloperBoard'
when fs = '' then hw = hw'None?'
otherwise hw = hw'Unknown'
end
return hw