Sunday, April 19, 2009

Getting the PinMAME Source

A link to the source code for Pinmame can be found at
http://www.pinmame.com/
on the downloads page:
http://pinmame.cvs.sourceforge.net/pinmame/pinmame/

This is a link to a CVS repository where the code can be viewed but not easily downloaded. A google search and some experimentation yielded the following method for obtaining the source:
  1. Obtain a stable version of CVS. The version I used for windows was available from GNU:
    http://ftp.gnu.org/non-gnu/cvs/binary/stable/x86-woe/cvs-1-11-22.zip
  2. Determine the latest revison that is tagged in the repository by opening the whatsnew.txt file log and looking at the CVS tag. You can do that easily by following this link.
    http://pinmame.cvs.sourceforge.net/viewvc/pinmame/pinmame/whatsnew.txt?view=log
    You should see something like 'release_X_Y' which corresponds to pinmame version X.Y. This tag will be used in the next step.
  3. Open the start menu in the text box, type 'cmd' to open a command line shell and 'cd' to the directory containing the cvs executable.

  4. Check out the source code from the sourceforge repository using the command:

    cvs -z3 -d:pserver:anonymous@pinmame.cvs.sourceforge.net:/cvsroot/pinmame co -r release_2_1 -d pinmame_cvs_2_1 pinmame

    To check out a later version of pinmame use the tag found earlier in place of 'release_2_1'. In this command -z3 tells CVS to use file compression for downloading files over the internet, -r [tag] specifies the revision, -d [dir] is the local directory that will be created. The password for anonymous users is blank so just press enter if prompted. If all went well there should now be a pinmame_cvs directory that contains the source code.

No comments:

Post a Comment