# phpman > man > DEBRELEASE(1)

[DEBRELEASE(1)](https://www.chedong.com/phpMan.php/man/DEBRELEASE/1/markdown)                          General Commands Manual                         [DEBRELEASE(1)](https://www.chedong.com/phpMan.php/man/DEBRELEASE/1/markdown)



## NAME
       debrelease - a wrapper around dupload or dput

## SYNOPSIS
       **debrelease** [_debrelease_ _options_] [_dupload/dput_ _options_]

## DESCRIPTION
       **debrelease**  is  a simple wrapper around **dupload** or **dput**.  It is called from within the source
       code tree of a package, and figures out the current version of a package.  It then looks  for
       the  corresponding  _.changes_ file (which lists the files needed to upload in order to release
       the package) in the parent directory of the source code tree and calls **dupload** or  **dput**  with
       the _.changes_ file as parameter in order to perform the actual uploading.

       Options  may be given to **debrelease**; except for the ones listed below, they are passed on un‐
       changed to **dupload** or **dput**.  The **devscripts** configuration files are also read  by  **debrelease**
       as described below.

### Directory name checking
       In common with several other scripts in the **devscripts** package, **debrelease** will climb the di‐
       rectory tree until it finds a _debian/changelog_ file.  As  a  safeguard  against  stray  files
       causing  potential  problems,  it will examine the name of the parent directory once it finds
       the _debian/changelog_ file, and check that the directory name corresponds to the package name.
       Precisely   how  it  does  this  is  controlled  by  two  configuration  file  variables  **DE**‐‐
       **VSCRIPTS**___**CHECK**___**DIRNAME**___**LEVEL** and **DEVSCRIPTS**___**CHECK**___**DIRNAME**___**REGEX**, and their corresponding com‐
       mand-line options **--check-dirname-level** and **--check-dirname-regex**.

       **DEVSCRIPTS**___**CHECK**___**DIRNAME**___**LEVEL** can take the following values:

       **0**      Never check the directory name.

       **1**      Only check the directory name if we have had to change directory in our search for _de__‐
              _bian/changelog_.  This is the default behaviour.

       **2**      Always check the directory name.

       The directory name is checked by testing whether the current directory name (as determined by
       [**pwd**(1)](https://www.chedong.com/phpMan.php/man/pwd/1/markdown))    matches    the    regex    given    by   the   configuration   file   option   **DE**‐‐
       **VSCRIPTS**___**CHECK**___**DIRNAME**___**REGEX** or by the command line option **--check-dirname-regex** _regex_.  Here
       _regex_  is  a  Perl regex (see [**perlre**(3perl)](https://www.chedong.com/phpMan.php/man/perlre/3perl/markdown)), which will be anchored at the beginning and the
       end.  If _regex_ contains a '/', then it must match the full directory path.  If not,  then  it
       must match the full directory name.  If _regex_ contains the string ´PACKAGE', this will be re‐
       placed by the source package name, as determined from the changelog.  The default  value  for
       the regex is: ´PACKAGE(-.+)?', thus matching directory names such as PACKAGE and PACKAGE-ver‐
       sion.

## OPTIONS
       **--dupload**, **--dput**
              This specifies which uploader program to use; the default is **dupload**.

### -S
              _.changes_ file is present, then this source-only _.changes_ file will be uploaded instead
              of an arch-specific one.

### -a -t
              See [**dpkg-architecture**(1)](https://www.chedong.com/phpMan.php/man/dpkg-architecture/1/markdown) for a description of these options.  They affect  the  search
              for  the _.changes_ file.  They are provided to mimic the behaviour of **dpkg-buildpackage**
              when determining the name of the _.changes_ file.  If a plain **-t** is given, it  is  taken
              to  be  the **dupload** host-specifying option, and therefore signifies the end of the **de**‐‐
              **brelease**-specific options.

### --multi
              Multiarch _.changes_ mode: This signifies that **debrelease** should  use  the  most  recent
              file  with the name pattern _package_version_*+*.changes_ as the _.changes_ file, allowing
              for the _.changes_ files produced by **dpkg-cross**.

       **--debs-dir** _directory_
              Look for the _.changes_ and _.deb_ files in _directory_ instead of the parent of the  source
              directory.   This  should  either  be  an  absolute path or relative to the top of the
              source directory.

       **--check-dirname-level** _N_
              See the above section **Directory** **name** **checking** for an explanation of this option.

       **--check-dirname-regex** _regex_
              See the above section **Directory** **name** **checking** for an explanation of this option.

       **--no-conf**, **--noconf**
              Do not read any configuration files.  This can only be used as the first option  given
              on the command-line.

       **--help**, **-h**
              Display a help message and exit successfully.

### --version
              Display version and copyright information and exit successfully.

## CONFIGURATION VARIABLES
       The  two configuration files _/etc/devscripts.conf_ and _~/.devscripts_ are sourced 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:

       **DEBRELEASE**___**UPLOADER**
              The currently recognised values are _dupload_ and _dput_, and it specifies which  uploader
              program  should  be used.  It corresponds to the **--dupload** and **--dput** command line op‐
              tions.

       **DEBRELEASE**___**DEBS**___**DIR**
              This specifies the directory in which to look for the _.changes_ and _.deb_ files, and  is
              either  an  absolute path or relative to the top of the source tree.  This corresponds
              to the **--debs-dir** command line option.  This directive could be used, for example,  if
              you always use **pbuilder** or **svn-buildpackage** to build your packages.  Note that it also
              affects [**debc**(1)](https://www.chedong.com/phpMan.php/man/debc/1/markdown) and [**debi**(1)](https://www.chedong.com/phpMan.php/man/debi/1/markdown).

       **DEVSCRIPTS**___**CHECK**___**DIRNAME**___**LEVEL**, **DEVSCRIPTS**___**CHECK**___**DIRNAME**___**REGEX**
              See the above section **Directory** **name** **checking** for an explanation of  these  variables.
              Note  that  these  are package-wide configuration variables, and will therefore affect
              all **devscripts** scripts which check their value, as described in their respective  man‐
              pages and in [**devscripts.conf**(5)](https://www.chedong.com/phpMan.php/man/devscripts.conf/5/markdown).

## SEE ALSO
       [**dput**(1)](https://www.chedong.com/phpMan.php/man/dput/1/markdown), [**dupload**(1)](https://www.chedong.com/phpMan.php/man/dupload/1/markdown), [**devscripts.conf**(5)](https://www.chedong.com/phpMan.php/man/devscripts.conf/5/markdown)

## AUTHOR
       Julian  Gilbey  <<jdg@debian.org>>,  based  on the original **release** script by Christoph Lameter
       <<clameter@debian.org>>.



DEBIAN                                    Debian Utilities                             [DEBRELEASE(1)](https://www.chedong.com/phpMan.php/man/DEBRELEASE/1/markdown)
