 |
 |
CVS and Nib Help
|
 |
|
 |
|
Mac Enthusiast
Join Date: Sep 2000
Location: Vermont, USA
Status:
Offline
|
|
I successfully set up CVS for use with Project Builder by following this tutorial. However, this only works for text files. I would like to be able to do version control with nib files from Project Builder (nib files are really many files bundled together, I think).
My understanding is that I need to edit the cvswrappers file in my CVSROOT directory based on this documentation from Apple. However, I am not much of a Unix shell command line person. Do you think someone can walk me through, or post a quick example of how to edit the cvswrappers file and what to do after I am done editing it and what to edit it withjavascript :smilie('  ')
Any help appreciated. 
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Jul 2002
Status:
Offline
|
|
You can edit cvswrappers in any text editor.
BBedit, for example.
You want to add this line to the
"# Wrapped files" section:
*.nib -k 'b' -f '/Developer/Tools/cvs-unwrap %s' -t '/Developer/Tools/cvs-wrap %s %s' -m 'COPY'
There are some other common binary files which you may want to handle also:
*.icns -k 'b' -m 'COPY'
*.rsrc -k 'b' -m 'COPY'
After you've saved changes to cvswrappers, the best thing to do is to rename your current working source directory and check out a new clean copy. Diff the two and make sure nibs and binary files are identical.
Then make an edit to a nib, and submit it. Delete the local working copy and check out a clean one. Make sure it's OK. Repeat for any other binary files types you use.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Sep 2000
Location: Vermont, USA
Status:
Offline
|
|
Originally posted by arekkusu:
Diff the two and make sure nibs and binary files are identical.
I am not sure what you mean by this, difference the two? What do you think is the best way to do that?
Originally posted by arekkusu:
Then make an edit to a nib, and submit it. Delete the local working copy and check out a clean one. Make sure it's OK. Repeat for any other binary files types you use.
You mean I have to do this for each binary file? That could take a while, do you mean just check to make sure that all of my files of the newly checked out project match my older checkedout project?
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Jul 2002
Status:
Offline
|
|
IMHO, the best binary diff tool is MPW "equal". I haven't found a good OS X native replacement. Resourcerer "Compare Two Files" works fine, for one file at a time.
You don't have to check every single binary file, one of each file type is sufficient. If you check in a .rsrc or .nib and then check out a clean copy, and it looks OK and works, then you're probably fine.
Basically you just want to convince yourself that CVS isn't corrupting your binaries. By default it tries to store revisions as diffs, treating files as text and comparing line-by-line. Editing cvswrapper makes it store the entire file as one binary chunk for each revision.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Sep 2000
Location: Vermont, USA
Status:
Offline
|
|
So I added the lines you as you described to my cvswrappers file and checkout out my project again. However, I couldn't open any of the nib files. I would double click on them from the Finder (or from within PB) and Interface Builder would launch, but nothing would open.
Got any suggestions?
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Jul 2002
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|