bin2rc

Dimitrie O. Paun dpaun at rogers.com
Sat Mar 29 19:01:41 CST 2003


I've just stupidly lost an hour or so trying to figure out
how to convert a .bmp to a .rc script. Such a simple problem...

ChangeLog
  Simple utility to convert a file to raw data for a .rc script.

--- /dev/null	2002-08-30 19:31:37.000000000 -0400
+++ tools/bin2rc	2003-03-29 19:00:11.000000000 -0500
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+echo BEGIN
+hexdump -vC $1 | sed "s/........//" | sed "s/  /  '/" | sed "s/ *|.*/'/"
+echo END



-- 
Dimi.




More information about the wine-patches mailing list