Revision [17187]

This is an old revision of DevGettingTheSourceCode made by DkLwikki on 2014-08-28 13:40:24.

 

Getting the source code



From Git

The FreeBASIC source code is maintained using the Git version control system.
The latest version is available from these Git repositories:
In order to access a Git repository, you first need to install a Git client.

Check out http://git-scm.com/downloads for more information.

After installing a Git client, you can download ("clone") the fbc repository.
# Clone fbc's SourceForge repository into a new fbc/ directory
git clone git://git.code.sf.net/p/fbc/code fbc

# Open graphical commit history browser:
gitk --all &

# Open graphical commit tool:
git gui &

# The Git Bash is an MSYS shell providing a Linux-like command line environment.
# It should have mapped the ~ home directory to your C:\Documents and Settings\username or
# C:\Users\name directory. It is ok to work there, but if you want to change directories and clone
# the fbc repository to somewhere else, you can do so as follows:
# Change directory to C:\foo\bar
cd /c/foo/bar

# Clone fbc's SourceForge repository into a new fbc directory
git clone git://git.code.sf.net/p/fbc/code fbc

# Open graphical commit history browser:
gitk --all &

# Open graphical commit tool:
git gui &


As a result you should have an fbc/ directory containing the FreeBASIC source code (and a .git directory, Git repository metadata).

You can regularly update it to the latest version by synchronizing it to the fbc repository which you originally cloned: Go into your fbc/ directory and run a Git Pull. When using the Git command line, this should do the trick:

cd fbc/
git pull


From Git but without using a Git client

Both SourceForge and GitHub allow you to download snapshots of the source code stored in the fbc Git repository. This way you can download the latest fbc source code without having to use a Git client. Using a Git client is generally more efficient though.

Source code for releases

Besides the source code in Git which corresponds to the development version of FreeBASIC, you can also download the source code for the latest official stable release of FreeBASIC (or previous releases) by visiting the fbc downloads area on SourceForge:

http://sourceforge.net/projects/fbc/files/

The Source Code directory will always contain downloads for the source code of the latest FreeBASIC release. The source code of previous releases can be found in the Older versions directory.

Back to FreeBASIC Developer Information

Back to Table of Contents
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode