[openbeos] cvs and .rsrc files (again)

  • From: "Matthijs Hollemans" <matthijs@xxxxxxxxxxxxxxxxxxx>
  • To: <openbeos@xxxxxxxxxxxxx>
  • Date: Thu, 31 Oct 2002 20:28:36 +0100

Hey,

Yesterday I asked whether it would be okay to tell cvs that .rsrc
files are really binary, by including them in the "cvswrappers"
configuration file. The reason I asked is that all .rsrc files in
the cvs repository are corrupt because the cvs used to treat them as
ASCII and not binary.

But it gets worse -- I remembered an old post from bedevtalk about
this same problem, so I looked it up. Even if you store .rsrc files
as binary, cvs still strips the file's attributes. And guess where
the icons and the app signature are stored? In the attributes, of
course. So putting the .rsrc file type in cvswrappers made
absolutely no difference -- the .rsrc files are still broken.

Now, I can't believe no one has noticed this before... after all,
there are about 20 or so .rsrc files in the repository. Has anyone
else run into this problem? More to the point, what is the proposed
solution?

IMHO, we should not include .rsrc files in the repository, but
compile them from a special source format instead, something I think
has already been proposed here. An alternative solution is zipping
the .rsrc files and storing the zips in the repository, since zip
_does_ preserve the attributes. That makes cvs a little harder to
use, but it may be possible to make this zipping and unzipping
totally transparent to the user (that's us) by writing special
"commit rules".

Any thoughts?
--
Matthijs



Other related posts: