bin2rc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux