Chapter 3. Programming for LCDproc

Table of Contents

Get the source
Download Yesterday's CVS Version of LCDproc as a Tarball
Download The Latest Version of LCDproc from CVS
Code style guideline
File format and indention
Naming conventions
Comments
Statement style
Submitting code

Get the source

If you want to start programming for LCDproc you will need the have the most current source code available. You can get it several ways:

  1. Download yesterday's CVS version of as a tarball (preferred).

  2. Download the latest version from CVS.

  3. Download the last stable release from Sourceforge. (This is not recommended as stable release may be months behind the current version.)

Download Yesterday's CVS Version of LCDproc as a Tarball

There are nightly distributions of the CVS branches of LCDproc. You can download them from http://lcdproc.sourceforge.net/nightly/. For development we recommended to use the 'current' branch.

To extract the files run

$ tar xvfz lcdproc-CVS-current.tar.gz

Download The Latest Version of LCDproc from CVS

Of course you can download the latest stuff from CVS via anonymous login. For more information on how to use CVS see About CVS on Sourceforge.

Login to CVS:

$ cvs -d:pserver:anonymous@lcdproc.cvs.sourceforge.net:/cvsroot/lcdproc login

(Hit enter when prompted for a password.)

Get the files from CVS:

$ cvs -d:pserver:anonymous@lcdproc.cvs.sourceforge.net:/cvsroot/lcdproc checkout -P lcdproc

Once you've done that and want to update the downloaded files to the latest stuff you can use the "update" command of CVS (make sure to be in the lcdproc directory!):

$ cvs update -d

Now that once you have downloaded the files you can prepare them for compiling, but first you should (you don't have to) copy them to another place on your machine.