Subversion
From FreeBSDwiki
(Difference between revisions)
(→svnup) |
m |
||
(3 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | Here is how to configure and run programs that use subversion, mainly to update FreeBSD source files. | + | Here is how to configure and run programs that use [[subversion]], mainly to [[Updating the source tree|update FreeBSD source files]]. |
==svnup== | ==svnup== | ||
− | Unfortunately, subversion control doesn't come with the base system, but there is a convenient, dependency-less port called | + | Unfortunately, subversion control doesn't come with the base system, but there is a convenient, dependency-less port called {{port|net/svnup}}. |
# pkg install svnup | # pkg install svnup | ||
+ | or | ||
+ | # /usr/ports/net/svnup/make install clean | ||
+ | |||
# man svnup | # man svnup | ||
===svnup.conf=== | ===svnup.conf=== | ||
− | The configuration file for svnup.conf is at | + | The configuration file for {{file|svnup.conf}} is at {{file|/usr/local/etc/svnup.conf}}, and these set options can be overrode on the command line. |
Here is an example of the configuration file: | Here is an example of the configuration file: | ||
Line 35: | Line 38: | ||
target=/usr/ports | target=/usr/ports | ||
− | This looks simple enough, remove the # [comment out] sign next to the server you wish to use, and adjust other options. For more information type: | + | This looks simple enough, remove the {{code|#}} [comment out] sign next to the server you wish to use, and adjust other options. For more information type: |
# man svnup.conf | # man svnup.conf | ||
===Updating=== | ===Updating=== | ||
− | To update via svnup, use the svnup command with the tag in parenthesis described in the conf file: | + | To update via svnup, use the {{cmd|svnup}} command with the tag in parenthesis described in the conf file: |
# svnup release | # svnup release | ||
or | or | ||
Line 50: | Line 53: | ||
[[Category:Configuring FreeBSD]] | [[Category:Configuring FreeBSD]] | ||
[[Category:Important Config Files]] | [[Category:Important Config Files]] | ||
+ | [[Category:Common Tasks]] |
Latest revision as of 07:47, 30 October 2015
Here is how to configure and run programs that use subversion, mainly to update FreeBSD source files.
Contents |
[edit] svnup
Unfortunately, subversion control doesn't come with the base system, but there is a convenient, dependency-less port called net/svnup .
# pkg install svnup
or
# /usr/ports/net/svnup/make install clean
# man svnup
[edit] svnup.conf
The configuration file for svnup.conf is at /usr/local/etc/svnup.conf, and these set options can be overrode on the command line. Here is an example of the configuration file:
# $FreeBSD$ # # Default configuration options for svnup.conf. # [defaults] work_directory=/var/tmp/svnup #host=svn.freebsd.org #host=svn0.us-west.freebsd.org #host=svn0.us-east.freebsd.org #host=svn0.eu.freebsd.org protocol=https verbosity=1 trim_tree=0 extra_files=0 #repository_base= # [release] branch=base/releng/10.1 target=/usr/src # [ports] branch=ports/head target=/usr/ports
This looks simple enough, remove the # [comment out] sign next to the server you wish to use, and adjust other options. For more information type:
# man svnup.conf
[edit] Updating
To update via svnup, use the svnup command with the tag in parenthesis described in the conf file:
# svnup release
or
# svnup ports
[edit] References
- FreeBSD.org