Difference between revisions of "Source Code"

From MagnetoWiki
Jump to navigation Jump to search
(Added section about basic operations with XCode)
(Add link to Github repos.)
 
(20 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Source code, scripts, and configuration files for the Houpt Lab's software, servers and meta-cortex are all stored in the Houpt Lab Source Code Repository. The repository uses the SubVersion version control system, and associated software.
+
Open source code from the Houpt Lab is available from the [https://github.com/HouptLab Houpt Lab Github Repositories].
  
==Browsing the Repository==
+
Source code, scripts, and configuration files for the Houpt Lab's software, servers and meta-cortex are all stored in the Houpt Lab Source Code Repository. The repository uses the [http://subversion.tigris.org/ Subversion version control system], and associated software. The [http://svnbook.red-bean.com/ Subversion Book] is a good introduction and reference to the world of Subversion.
  
The repository can be viewed online using the [http://websvn.tigris.org/ WebSVN] interface at:
+
== Houpt Lab Repository Access ==
  
[http://houptlab.org/xtechops/websvn/ Houpt Lab Source Code Repository]
+
The Houpt Lab Subversion server is accessed with the following URL:
  
==Mac OS X Client Setup==
+
'''svn+ssh://houptlab.org/svnroot/'''
  
All the software and scripts for setting up an Subversion client are available on LabDisk in the [http://www.magnet.neuro.fsu.edu/LabDisk/CEHoupt/Software/Subversion/ Software/Subversion] folder.
+
==Browsing the Repository==
  
===Subversion Setup===
+
The repository can be viewed from any web browser using the [http://websvn.tigris.org/ WebSVN] interface at:
  
Install the [http://www.magnet.neuro.fsu.edu/LabDisk/CEHoupt/Software/Subversion/subversion-client-1.3.1.dmg Subversion client] package, which places the Subversion command line tools on the local Mac in /usr/local/bin.
+
[{{SERVER}}/cortex/websvn/ Houpt Lab Source Code Repository]
  
Run the [http://www.magnet.neuro.fsu.edu/LabDisk/CEHoupt/Software/Subversion/Install%20usr-local-bin%20on%20PATH.command Install usr-local-bin on PATH] script to ensure that /usr/local/bin is placed on the PATH environment variable by modifying the account's .bash_profile.
+
==Mac OS X Client Setup (10.6+)==
  
To confirm that Subversion is correctly installed and available on the PATH, open a Terminal window and execute the follow command to display the version number.
+
All the software and scripts for setting up an Subversion client are available on LabDisk in the [{{SERVER}}/LabDisk/CEHoupt/Software/Subversion/ Software/Subversion] folder.
  
$ svn --version
+
===Command-Line and Secure Shell (SSH) Public-Key Encryption Setup===
  
===Secure Shell (SSH) Public-Key Encryption Setup===
+
To use Subversion over SSH from the command-line, it is useful to setup SSH keys for password-less login.
  
Run the  [http://www.magnet.neuro.fsu.edu/LabDisk/CEHoupt/Software/Subversion/Create%20SSH%20Key.command Create SSH Key] script to generate public and private keys for the current user.
+
Run the  [{{SERVER}}/LabDisk/CEHoupt/Software/Subversion/Create%20SSH%20Key.command Create SSH Key] script to generate public and private keys for the current user.
  
Run the [http://www.magnet.neuro.fsu.edu/LabDisk/CEHoupt/Software/Subversion/Install%20Public%20SSH%20Key.command Install Public SSH Key] script to copy the public key to the Subversion server (houptlab.org).
+
Run the [{{SERVER}}/LabDisk/CEHoupt/Software/Subversion/Install%20Public%20SSH%20Key.command Install Public SSH Key] script to copy the public key to the Subversion server (houptlab.org).
  
==Basic Operations with XCode==
+
==Server Setup==
 
 
Although XCode supports many Subversion operation, it doesn't support checking out (or importing) a project directory. So, to checkout an existing project directory, use 'svn checkout' from a Terminal. For example, use the following to checkout the 'testproj' directory from the repository and place it in the 'testproj-work' folder in your home directory:
 
 
 
$ svn checkout svn+ssh://houptlab.org/svnroot/testproj ~/testproj-work
 
 
 
Now open ~/testproj-work/testproj.xcodeproj, and use it normally (change, add, delete, rename files, etc).
 
 
 
Consult the [http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeUserGuide/Contents/Resources/en.lproj/index.html?http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeUserGuide/Contents/Resources/en.lproj/04_01_SCMOverview/chapter_26_section_1.html XCode section on Version Control] for details on using XCode with Subversion.
 
  
==Server Setup==
+
The sever is currently running 10.4, which doesn't ship with Subversion. The [{{SERVER}}/LabDisk/CEHoupt/Software/Subversion/Subversion%201.4.4-2%20Universal.dmg Subversion client] package is installed, which places the Subversion command line tools in /usr/local/bin. Symbolic links are setup in /usr/bin so that Subversion commands are available on the default path.

Latest revision as of 09:15, 16 April 2019

Open source code from the Houpt Lab is available from the Houpt Lab Github Repositories.

Source code, scripts, and configuration files for the Houpt Lab's software, servers and meta-cortex are all stored in the Houpt Lab Source Code Repository. The repository uses the Subversion version control system, and associated software. The Subversion Book is a good introduction and reference to the world of Subversion.

Houpt Lab Repository Access

The Houpt Lab Subversion server is accessed with the following URL:

svn+ssh://houptlab.org/svnroot/

Browsing the Repository

The repository can be viewed from any web browser using the WebSVN interface at:

Houpt Lab Source Code Repository

Mac OS X Client Setup (10.6+)

All the software and scripts for setting up an Subversion client are available on LabDisk in the Software/Subversion folder.

Command-Line and Secure Shell (SSH) Public-Key Encryption Setup

To use Subversion over SSH from the command-line, it is useful to setup SSH keys for password-less login.

Run the Create SSH Key script to generate public and private keys for the current user.

Run the Install Public SSH Key script to copy the public key to the Subversion server (houptlab.org).

Server Setup

The sever is currently running 10.4, which doesn't ship with Subversion. The Subversion client package is installed, which places the Subversion command line tools in /usr/local/bin. Symbolic links are setup in /usr/bin so that Subversion commands are available on the default path.