icon2res v1.0 
By: Daniel Lundin <daniel@swelinux.org>
_____________________________________________________

Description
Icon2res is a simple commandline tool for dumping icon attributes from a file into a mwbres resource-file. It will scan through the inputfile's attributes for data of type 'ICON' or 'MICN' , convert it into mwbres-style resource data and output it into the output file.

Usage
icon2res inputfile outpufile [attributename]

inputfile 
  File containing icon attribute data (app files, IconWorld files, etc)

outputfile 
  Resource utput file. Should end with .r (will be concatenated if not              
  present)

attributename
  Name of a specific icon to convert

Using resourcefiles in BeIDE
To make BeIDE aware of what to do with mwbres files automatically when you make your project, you should add a Target in 'Project Settings' as follows:
 
    File Type: <empty>
   Extension: r
   Tool Name: mwbres
       Flags: Postlink stage

After that it should compile the .r-files in your project and merge the resources into your application/library each time you make your project.

Hint
Remove the commenting of the '//#define CONVERT_ALL_ATTRIBS' line and icon2res will convert all attributed to resources, not only ICON/MICNs.
You can also compile it with 'make allattr-version'. 

Licensing
Icon2res is freeware under the GPL (http://www.gnu.org) and may be spread for the wind along with the sources. You may change the (small) source to your hearts content if you wish as long as credit is given to the original author (that oughta be me then). 
_____________________________________________________
Daniel Lundin <daniel@swelinux.org>
http://www.swelinux.org/~daniel/ 
