Difference between revisions of "Template:SVN checkout"

From WeBWorK_wiki
Jump to navigation Jump to search
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<nowiki>svn co https://github.com/openwebwork/</nowiki>{{{repo}}}/{{{branch|trunk}}}/{{{dir}}}<noinclude>
+
<nowiki>svn co http://svn.webwork.maa.org/</nowiki>{{{repo}}}/{{{branch|trunk}}}/{{{dir}}}<noinclude>
   
 
This template should be used in place of hard-coding svn checkout instructions into the wiki. This way, it will be easy to update the checkout instructions all at once across the wiki when instructions change.
 
This template should be used in place of hard-coding svn checkout instructions into the wiki. This way, it will be easy to update the checkout instructions all at once across the wiki when instructions change.
Line 55: Line 55:
 
}}
 
}}
   
[[Category:Templates]]
 
  +
 
</noinclude>
 
</noinclude>

Latest revision as of 13:13, 22 April 2022

svn co http://svn.webwork.maa.org/{{{repo}}}/trunk/{{{dir}}}

This template should be used in place of hard-coding svn checkout instructions into the wiki. This way, it will be easy to update the checkout instructions all at once across the wiki when instructions change.

Usage

 {{SVN checkout
 |repo = 
 |branch = 
 |dir = 
 }}
 

Parameters

repo

May take the value of system or npl

branch

May take the value of trunk or a specific branch or tag of the code. To refer to a specific branch or tag you must enter e.g. branches/rel-2-4-patches or tags/rel-2-4-7. Note that the value of branch will default to the current stable release branch. When the current stable release branch changes, a single change in this template will update all installation instructions which use this template. To use the default value for branches simply call the template without that parameter. Since the NPL is always checked out with trunk, don't forget to include branch = trunk whenever using this template for NPL checkout instructions.

dir

If the repo = npl this should probably be NationalProblemLibrary. If repo = system, this should probably be webwork2 or pg. However, the repos have other subdirectories, and those may also be used in this template if needed.

Examples

 {{SVN checkout
 |repo=webwork2
 |dir=webwork2}}
 

gives: svn co http://svn.webwork.maa.org/webwork2/trunk/webwork2

 {{SVN checkout
 |repo=system
 |dir=pg}}
 

gives: svn co http://svn.webwork.maa.org/system/trunk/pg

 {{SVN checkout
 |repo = npl
 |branch = trunk
 |dir = NationalProblemLibrary
 }}
 

gives: svn co http://svn.webwork.maa.org/npl/trunk/NationalProblemLibrary