[haiku-3rdparty-dev] Re: Getting svg icons out of an rdef file

  • From: Pete Goodeve <pete.goodeve@xxxxxxxxxxxx>
  • To: haiku-3rdparty-dev@xxxxxxxxxxxxx
  • Date: Mon, 19 Jan 2015 15:10:51 -0800

On Sun, Jan 18, 2015 at 11:53:57PM -0800, scottmc wrote:
> On Sun, Jan 18, 2015 at 11:33 PM, Pete Goodeve <pete.goodeve@xxxxxxxxxxxx>
> wrote:
> > > > So -- as a service to the community (:-)) -- I present a little Ruby
> > script
> > > > that converts an rdef (containing *only* the 'VICN' section) back into
> > > > an hvif, "rdef2hvif.rb":
> > > > [....]
> >
> > This probably should be a generally available facility.  It seems like
> > something people might want to do.  Better as an executable, though,
> > rather than needing an interpreter folks may not have.
> >
> > I imagine a C++ version wouldn't be all that much bigger.  I just
> > prefer Ruby for quick iterative development.  If someone else
> > feels like writing it, feel free... (:-))  Otherwise I might get round to
> > it sometime.  Or would this make a good GSoC task?
> >
> Pete,
> Put the code up on Github or Bitbucket and give us the url and we will put
> together a recipe for it.  Ruby is fine.

But *is* Ruby fine?  I was thinking that it shold be a utility in system/bin
like 'rc' and so on.  Needing an optional interpreter doesn't seem like
a good idea.

Anyway, the script as it stands was just a quick-as-possible job to
satisfy Ryan's need.  Not adequate for a general utility.  It should
at least accept arbitrary rdef files and extract any and all 'VICN' entries
into separate hvif files.

Looking at previous GSoC ideas, I guess this isn't really a big enough
project -- considering I was able to hack it in probably less than an
hour!  (BTW is there supposed to be a 2015 GSoC ideas page?  The
link on Haiku's 2015 GSoC page itself goes nowhere.)

        -- Pete --

Other related posts: