Developer FAQ: Difference between revisions

Jump to navigation Jump to search
m
Line 7: Line 7:
If you have already a working installation, backup your file '''htdocs/conf/conf.php''' and your documents directory. It's more secure if you make a mistake later.
If you have already a working installation, backup your file '''htdocs/conf/conf.php''' and your documents directory. It's more secure if you make a mistake later.


'''Get last version of sources by download'''
'''Get last version of sources using a CVS anonymous access'''


This method allows you to get CVS version of main development branch (called HEAD). This operation consist to get last version of Dolibarr files that are packaged each night into a zip file.
With no Savannah CVS write access, you get still file with a CVS client (WinCVS or TortoiseCVS for example with Windows, or the CVS client in Eclipse).
For this, go on page with [http://www.dolibarr.org/downloads/cat_view/64-development-version last CVS version of the day].


New files will overwrite old ones.
The command to get a full snapshot in working directory is:
 
'''Get last version of sources using a full CVS access'''
 
Another way to get last CVS version is to use CVS tools. You need a Savannah write CVS access to CVS repository and a CVS client (CVS command line tool with Linux, WinCVS or TortoiseCVS for example with Windows, or the CVS client in Eclipse).
 
The command to get a full snapshot in a working directory is:
''
''
  CVSROOT=:ext:yourlogin@cvs.savannah.nongnu.org:/cvsroot/dolibarr
  CVSROOT=:pserver:anonymous@cvs.savannah.nongnu.org:/cvsroot/dolibarr
  export CVSROOT
  export CVSROOT
  cvs -q checkout -r HEAD dolibarr
  cvs -q checkout -r HEAD dolibarr
Line 26: Line 19:
HEAD means we want last version of files (so last development files).
HEAD means we want last version of files (so last development files).


'''Get last version of sources using a CVS anonymous access'''
'''Get last version of sources using a full CVS access'''


With no Savannah CVS write access, you get still file with a CVS client (WinCVS or TortoiseCVS for example with Windows, or the CVS client in Eclipse).
Another way to get last CVS version is to use CVS tools. You need a Savannah write CVS access to CVS repository and a CVS client (CVS command line tool with Linux, WinCVS or TortoiseCVS for example with Windows, or the CVS client in Eclipse).


The command to get a full snapshot in working directory is:
The command to get a full snapshot in a working directory is:
''
''
  CVSROOT=:pserver:anonymous@cvs.savannah.nongnu.org:/cvsroot/dolibarr
  CVSROOT=:ext:yourlogin@cvs.savannah.nongnu.org:/cvsroot/dolibarr
  export CVSROOT
  export CVSROOT
  cvs -q checkout -r HEAD dolibarr
  cvs -q checkout -r HEAD dolibarr
Line 59: Line 52:
If you want to work on a particular version (with its patches), you must follow same process but you must replace HEAD by name of the branch.
If you want to work on a particular version (with its patches), you must follow same process but you must replace HEAD by name of the branch.
For example DOLIBARR_2_2_BRANCH for branch 2.2 or DOLIBARR_2_4_BRANCH for branch 2.4.
For example DOLIBARR_2_2_BRANCH for branch 2.2 or DOLIBARR_2_4_BRANCH for branch 2.4.
'''Get last version of sources by download'''
This method allows you to get CVS version of main development branch (called HEAD). This operation consist to get last version of Dolibarr files that are packaged each night into a zip file.
For this, go on page with [http://www.dolibarr.org/downloads/cat_view/64-development-version last CVS version of the day].
New files will overwrite old ones.


'''Make configuration'''
'''Make configuration'''
Line 76: Line 76:
A CVS repository for non officials modules is also available on Sourceforge:
A CVS repository for non officials modules is also available on Sourceforge:
  :ext:youlogin@dolibarr.cvs.sourceforge.net:/cvsroot/dolibarr
  :ext:youlogin@dolibarr.cvs.sourceforge.net:/cvsroot/dolibarr
export CVSROOT
cvs -q checkout -r HEAD dolibarrmod


= Start a development =
= Start a development =

Navigation menu