For whatever reason, there doesn't seem to be a quickstart guide to getting CVS up and running with ProjectBuilder.
Apple's developer site has information on how to get CVS working from command line, but they miss out some ProjectBuilder details - mainly forgetting to set the cvswrappers file so that binary checkins on images and InterfaceBuilder NIB files get checked in properly.
So here's my little howto guide - I'll assume that you already have a simple project that is already created, but not checked into CVS yet.
First - you'll need to add your user to the 'wheel' user group.
For that- you'll need to play with NetInfo. Remember - OSX is more NextStep than BSD so the /etc/groups file won't do the trick for you.
You can find a description of how to navigate through NetInfo here.
The only real trick is to use the "Directory/Insert Value" menu to add a user to a group.
Next - setting up CVS as detailed in Apple's developer guide for CVS.
You'll need to do everything up to but not including "Creating your first project".
Before you go and checkin your project, you'll need to modify the cvswrappers file. Basically this tells CVS how to handle binary files - if you don't do this CVS will mishandle your NIB files as text data and your project will get pooched.
CocoaDev again has a snippet on settting up your cvswrappers file. You can find it here.
Just checkout CVSROOT, go into CVSROOT and copy the default cvswrappers file from /Developer/Tools/cvswrappers over the one in the checked out CVSROOT directory. Checkin with:
> cvs ci cvswrappers
Now you're ready to checkin your project.
Go back to the Apple CVS docs and import your project into CVS as described in "Creating Your First Project". It's important that you import your project from within your project directory!
After your project gets checked in, you'll need to check it out once, so go to the parent directory and checkout your project.
victorng@localhost:myproj> cd ..
victorng@localhost:~> cvs checkout myproj
That should be it.
From ProjectBuilder, you should be able to open your project and add files to the repository, commit changes and checkout.
Give yourself a pat on the back now.
Happy hacking everyone!
3:50:36 PM
|