debcheckout
SYNOPSIS
debcheckout [OPTIONS] PACKAGE [DESTDIR]
debcheckout [OPTIONS] REPOSITORY_URL [DESTDIR]
debcheckout --help
DESCRIPTION
debcheckout retrieves the information about the Version Control System
used to maintain a given Debian package (the PACKAGE argument), and
then checks out the latest (potentially unreleased) version of the
package from its repository. By default the repository is checked out
to the PACKAGE directory; this can be overridden by providing the
DESTDIR argument.
The information about where the repository is available is expected to
be found in Vcs-* fields available in the source package record. For
example, the vim package exposes such information with a field like
Vcs-Git: git://git.debian.org/git/pkg-vim/vim.git, you can see it by
grepping through "apt-cache showsrc vim".
If more than one source package record containing Vcs-* fields is
available, debcheckout will select the record with the highest version
number. Alternatively, a particular version may be selected from those
available by specifying the package name as PACKAGE=VERSION.
If you already know the URL of a given repository you can invoke
debcheckout directly on it, but you will probably need to pass the
appropriate -t flag. That is, some heuristics are in use to guess the
repository type from the URL; if they fail, you might want to override
the guessed type using -t.
The currently supported version control systems are: arch, bzr, cvs,
darcs, git, hg, svn.
OPTIONS
GENERAL OPTIONS
-a, --auth
Work in authenticated mode; this means that for known repositories
(mainly those hosted on http://alioth.debian.org) URL rewriting is
attempted before checking out, to ensure that the repository can be
committed to. For example, for subversion repositories hosted on
alioth this means that svn+ssh://svn.debian.org/... will be used
instead of svn://svn.debian.org/....
-d, --details
Only print a list of detailed information about the package
repository, without checking it out; the output format is a list of
fields, each field being a pair of TAB-separated field name and
field value. The actual fields depend on the repository type. This
action might require a network connection to the remote repository.
Also see -p. This option and -p are mutually exclusive.
Override the repository type (which defaults to some heuristics
based on the URL or, in case of heuristic failure, the fallback
"svn"); should be one of the currently supported repository types.
-u USERNAME, --user USERNAME
Specify the login name to be used in authenticated mode (see -a).
This option implies -a: you don't need to specify both.
-f, --file
Specify that the named file should be extracted from the repository
and placed in the destination directory. May be used more than once
to extract mutliple files.
VCS-SPECIFIC OPTIONS
GIT-SPECIFIC OPTIONS
--git-track BRANCHES
Specify a list of remote branches which will be set up for tracking
(as in git branch --track, see git-branch(1)) after the remote GIT
repository has been cloned. The list should be given as a space-
separated list of branch names.
As a shorthand, the string "*" can be given to require tracking of
all remote branches.
CONFIGURATION VARIABLES
The two configuration files /etc/devscripts.conf and ~/.devscripts are
sourced by a shell in that order to set configuration variables.
Command line options can be used to override configuration file
settings. Environment variable settings are ignored for this purpose.
The currently recognised variables are:
DEBCHECKOUT_AUTH_URLS
This variable should be a space separated list of Perl regular
expressions and replacement texts, which must come in pairs: REGEXP
TEXT REGEXP TEXT ... and so on. Each pair denotes a substitution
which is applied to repository URLs if other built-in means of
building URLs for authenticated mode (see -a) have failed.
References to matching substrings in the replacement texts are
allowed as usual in Perl by the means of $1, $2, ... and so on.
Using this setting users can specify how to enable authenticated
mode for repositories hosted on non well-known machines.
Here is a sample snippet suitable for the configuration files:
DEBCHECKOUT_AUTH_URLS='
^\w+://(svn\.example\.com)/(.*) svn+ssh://$1/srv/svn/$2
^\w+://(git\.example\.com)/(.*) git+ssh://$1/home/git/$2
'
Note that whitespace is not allowed in either regexps or
Debian Utilities 2010-03-26 DEBCHECKOUT(1)
Man Pages Copyright Respective Owners. Site Copyright (C) 1994 - 2012
Hurricane Electric.
All Rights Reserved.