Changes

Jump to navigation Jump to search

Developer FAQ

3,404 bytes removed, 9 years ago
= Get/update project sources =
This is informations on how you can get sources of Dolibar project. ===Get last version of sources using a CVS anonymous access=== With no Savannah account or no CVS write privileges, you can still get files with a CVS client (See page [http://www.wincvs.org WinCVS] or [http://www.tortoisecvs.org TortoiseCVS] for example with Windows, or the CVS client in Eclipse). The command to get a full snapshot in working directory is:<source lang="bash">CVSROOT=:pserver:anonymous@cvs.savannah.nongnu.org:/cvsroot/dolibarrexport CVSROOTcvs -q checkout -r HEAD dolibarr</source> HEAD means we want last version of files (so last development files). ===Get last version of sources using a full CVS access=== To get sources with goal to edit them, you need a Savannah write CVS access to the CVS repository (You must declare your public key to https://savannah.gnu.org/my/admin/editsshkeys.php), 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:<source lang="bash">CVSROOT=:ext:yoursavannahlogin@cvs.savannah.nongnu.org:/cvsroot/dolibarrexport CVSROOTcvs -q checkout -r HEAD dolibarr</source>HEAD means we want last version of files (so last development files). ===Get complementary modules=== A CVS repository for non official or rare Dolibarr modules is also available into CVS module dolibarrmod<source lang="bash">CVSROOT=:ext:yoursavannahlogin@cvs.savannah.nongnu.org:/cvsroot/dolibarrexport CVSROOTcvs -q checkout -r HEAD dolibarrmod</source> ===Update your repository=== The command to update files that was caught with previous CVS command: ''With linux:''<source lang="bash">cvs -q update -P -d</source>''With Windows and Tortoise cvs''<source lang="bash">"C:\Program Files\CVSNT\cvs.exe" -q update -P -d</source>And to set back all your working directory with same files than on CVS server repository (canceling your local changes): ''With linux:''<source lang="bash">cvs -q update -P -C -d</source>''With Windows and Tortoise cvs''<source lang="bash">"C:\Program Files\CVSNT\cvs.exe" -q update -P -C -d</source> May be, you will have to change permissions on directories or files after to make then readable by users of your Dolibarr web server. ===Get files for a particular CVS 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. ===Get last version of project 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.The inconvenient of this method is that you must download and uncompress again all archive file to get updates. ===Update database=== If you make an update of sources, the next step is to upgrade your database to reflect new sources. For this, all you have to do is call pagehttp://myrootdolibarr/install/and choose option "Update". This process was built to work whatever is start step and can be run and rerun several times with no risks].
= How to create a new skin =

Navigation menu