Quote:
Originally Posted by GeoffR
Thanks, Linux accepts the -t switch too so I'll use that for both systems.
A patch32lsb executable is still needed to run it on a Mac though.
|
Indeed! It builds with two minor compiler warnings:
Code:
/tmp/patch_kobo_330/tools/patch32lsb.c:166:16: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
return q - line;
~~~~~~ ~~^~~~~~
/tmp/patch_kobo_330/tools/patch32lsb.c:200:19: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
return q - line - 1;
~~~~~~ ~~~~~~~~~^~~
2 warnings generated.
Attached is a copy built which should run on OS X 10.8 and 10.9. I've only checked on 10.9.
I appear to have called it patch33lsb when I built it, but it can be renamed. I guess you'll want to figure out how to make the script switch between this binary and the Linux binary based on something like the case...esac code I posted yesterday, but that will depend a bit on how you decide to package things up.