On Sat, 03 Aug 2013, Tommi Koivula wrote to mark lewis:
ml>> perhaps the OS/2 klibc binaries could be named binkd2k.exe to
ml>> differentiate them from the emx one named binkd2e.exe? the '2'
ml>> indicating OS/2, of course ;)
ml> any thoughts on the above? i pulled one from max's site yesterday
ml> but it has the full name of binkdklibc.exe... that's easy enough
ml> to handle on the OS/2 native side but the file is invisible from
ml> the DOS side of OS/2 :?
TK> The default target in mkfls/os2-emx/makefile.klibc is binkd2e.exe.
TK> Anyone can rename it to whatever. :)
you are right, of course... i was thinking of the official naming convention
mentioned in the FAQ... it would be nice for the emx and klibc stuff to be
named differently for the binary as well as the distribution archive...
for now i use this bit of convoluted 4OS2 code to tell me the version and
flavor of the chosen binkd exe... it gives strings like
Binkd 0.9.6 Oct 28 2003 09:11:27/OS2
Binkd 1.0a-446 watcom Jun 06 2005 21:12:06/OS2
Binkd 1.0a-607 gcc (emx) Feb 20 2012 09:12:20/OS2
Binkd 1.0a-612 gcc (klibc) Jun 18 2012 22:18:08/OS2
Binkd 1.0.0 gcc (emx) Jun 26 2012 11:41:41/OS2
Binkd 1.0.0 gcc (klibc) Jun 23 2012 12:15:46/OS2
Binkd 1.1a-27 gcc (klibc) Jun 1 2013 01:00:19/OS2
Binkd 1.1a-27 gcc (emx) Jun 26 2013 17:04:09/OS2
Binkd 1.0a-612 gcc (emx) Jun 18 2012 16:40:22/OS2
the above last one is a binkd2eo.exe but i don't see anything to tell the
difference between it and non-omf non-multithreaded flavors from the "normal"
emx ones...
4OS2 scripting code follows...
===== snip =====
:chkver
%EXENAME% -v > %EXENAME%.ver
iff %@FILESIZE[%EXENAME%.ver,b] EQ 0 then
echo VER : *NO DATA*
del /q %EXENAME%.ver
else
echo VER : %@LINE[%EXENAME%.ver,0]
%EXENAME% -vv > %EXENAME%.ver.extra
iff %@FILESIZE[%EXENAME%.ver.extra,b] EQ 0 .OR.
%@FILESIZE[%EXENAME%.ver.extra,b] EQ %@FILESIZE[%EXENAME%.ver,b] then
echo EXTRA : *NO DATA*
del /q %EXENAME%.ver.extra
echo %@word[0,%@LINE[%EXENAME%.ver,0]] %@word[1,%@LINE[%EXENAME%.ver,0]]
%@STRIP["()",%@INSTR[%@INDEX[%@LINE[%EXENAME%.ver,0],(],%@LINE[%EXENAME%.ver,0]
]]
else
do cnt = 1 to %@LINES[%EXENAME%.ver.extra]
echo EXTRA : %@LINE[%EXENAME%.ver.extra,%cnt]
enddo
echo %@word[0,%@LINE[%EXENAME%.ver,0]] %@word[1,%@LINE[%EXENAME%.ver,0]]
%@trim[%@word[":,",1,%@LINE[%EXENAME%.ver.extra,1]]]
%@STRIP["()",%@INSTR[%@INDEX[%@LINE[%EXENAME%.ver,0],(],%@LINE[%EXENAME%.ver,0]
]]
endiff
endiff
return
===== snip =====
)\/(ark