Prev Next subversion

Using Subversion To Download Source Code

File Format
The files corresponding to this download procedure are in Unix format; i.e., each line ends with just a line feed.

Subversion
You must have subversion installed to use this download procedure. In Unix, you can check if subversion is already installed in your path by entering the command
     which svn

OMhelp
The documentation for CppAD is built from the source code files using OMhelp . In Unix, you can check if OMhelp is already installed in your path by entering the command
     which omhelp

Current Version
The following command will download the current version of the CppAD source code:
     svn co https://projects.coin-or.org/svn/CppAD/
dir dir
where dir is replaced by trunk. To see if this has been done correctly, check for the following file:
     
dir/cppad/cppad.hpp
Since you downloaded the current version, you should set the version of CppAD to the current date. Using an editor of you choice, open the file
     
dir/configure
(if you plan to use the Windows install instructions, edit dir/cppad/config.h instead of dir/configure). Search this file for text of the form yyyymmdd where yyyy are four decimal digits representing a year, mm is two decimal digits representing a month, and dd is two decimal digits representing a day. Replace each occurrence of this text with the decimal digits for the current year, month, and day (i.e., the eight decimal digits representing the current date).

Stable Version
Subversion downloads are available for the following stable versions of CppAD:
dir yyyymmdd
1.0    20060913
2.0    20071016
2.1    20071124
2.2    20071210
The following command will download a stable version of the CppAD source code:
     svn co https://projects.coin-or.org/svn/CppAD/stable/
dir dir
To see if this has been done correctly, check for the following file: if dir is 1.0 check for
     1.0/CppAD/CppAD.h
otherwise check for
     
dir/cppad/cppad.hpp
Since you downloaded a stable version, the version of CppAD configure, and all the other relevant files, is correct.

Build the Documentation
Now build the documentation for this version using the commands
     mkdir 
dir/doc
     cd 
dir/doc
     omhelp ../doc.omh -noframe -debug -l http://www.coin-or.org/CppAD/
     omhelp ../doc.omh -noframe -debug -l http://www.coin-or.org/CppAD/ -xml

Continue with Installation
Once the steps above are completed, you can proceed with the install instructions in the documentation you just built. Start by opening the one of the two files
     
dir/doc/index.xml
     
dir/doc/index.htm
in a web browser and proceeding to the Unix or Windows install instructions.
Input File: omh/subversion.omh