View Single Post
Old 04-30-2014, 02:15 AM   #61
chrisridd
Guru
chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.
 
chrisridd's Avatar
 
Posts: 983
Karma: 2209358
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, PocketBook InkPad Color 3
Quote:
Originally Posted by GeoffR View Post
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.
Attached Files
File Type: zip macbinary.zip (15.5 KB, 362 views)
chrisridd is offline   Reply With Quote