DEBRELEASE(1)
π DEBRELEASE(1) π
okay bestie, so this is the debrelease manual page from the General Commands Manual section, and it's literally just here to make your life easier. let's get into it β¨
πΈ NAME πΈ
debrelease β it's a wrapper around dupload or dput. that's it, that's the whole job. a little middle-man with main character energy π«Ά
π SYNOPSIS π
debrelease [debrelease options] [dupload/dput options]
β¨ DESCRIPTION β¨
so debrelease is a simple wrapper around dupload or dput. you call it from inside the source code tree of a package, and it figures out the current version of that package. then it goes looking for the matching .changes file β which is the file that lists everything you need to upload in order to release the package β in the parent directory of the source code tree. then it calls dupload or dput with that .changes file as a parameter so the actual uploading can happen. iconic behavior fr π
you can pass options to debrelease too. except for the ones listed down below, those options get passed on unchanged to dupload or dput. and yes, the devscripts configuration files get read by debrelease as well, as described below. no cap.
π Directory name checking π
just like several other scripts in the devscripts package, debrelease will climb up the directory tree until it finds a debian/changelog file. and because stray files can cause potential problems, it acts as a safeguard: once it finds that debian/changelog, it examines the name of the parent directory and checks that the directory name corresponds to the package name. how exactly it does this is controlled by two configuration file variables β DEVSCRIPTS_CHECK_DIRNAME_LEVEL and DEVSCRIPTS_CHECK_DIRNAME_REGEX β and their corresponding command-line options --check-dirname-level and --check-dirname-regex. π
DEVSCRIPTS_CHECK_DIRNAME_LEVEL can take these values:
0β never check the directory name. live your truth, no vibe check here.1β only check the directory name if we had to change directory while searching fordebian/changelog. this is the default behaviour. β¨2β always check the directory name. no exceptions, periodt.
the directory name gets checked by testing whether the current directory name (as determined by pwd(1)) matches the regex given by the configuration file option DEVSCRIPTS_CHECK_DIRNAME_REGEX or by the command line option --check-dirname-regex regex. here, regex is a Perl regex (peep perlre(3perl)), and it will be anchored at the beginning and the end. if regex contains a /, then it has to match the full directory path. if not, then it has to match the full directory name. and if regex contains the string PACKAGE, that gets replaced by the source package name, as determined from the changelog. the default value for the regex is: 'PACKAGE(-.+)?' β which means it matches directory names like PACKAGE and PACKAGE-version. slay π
π OPTIONS π
--dupload,--dputβ says which uploader program to use. the default isdupload. pick your fighter π₯-Sβ if you use this option, or if the default.changesfile isn't found but a source-only.changesfile is present, then that source-only.changesfile gets uploaded instead of an arch-specific one.-adebian-architecture,-tGNU-system-typeβ go readdpkg-architecture(1)for the description of these options. they affect the search for the.changesfile, and they're provided to mimic howdpkg-buildpackagebehaves when determining the name of the.changesfile. important though: if a plain-tis given, it gets taken as theduploadhost-specifying option, and therefore it signifies the end of thedebrelease-specific options. so like, watch out π--multiβ multiarch.changesmode. this signifies thatdebreleaseshould use the most recent file with the name patternpackage_version_*+*.changesas the.changesfile, which allows for the.changesfiles produced bydpkg-cross. cute.--debs-dir directoryβ look for the.changesand.debfiles 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 section Directory name checking above for what this one means.--check-dirname-regex regexβ same deal, see Directory name checking above for the explanation.--no-conf,--noconfβ do not read any configuration files. β οΈ this can only be used as the first option given on the command-line. first or it doesn't count, bestie.--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 variables currently recognised are:
DEBRELEASE_UPLOADERβ the currently recognised values areduploadanddput, and it specifies which uploader program should be used. it corresponds to the--duploadand--dputcommand line options.DEBRELEASE_DEBS_DIRβ this specifies the directory in which to look for the.changesand.debfiles, and it's either an absolute path or relative to the top of the source tree. it corresponds to the--debs-dircommand line option. this directive could be used, for example, if you always usepbuilderorsvn-buildpackageto build your packages. note that it also affectsdebc(1)anddebi(1). π«£DEVSCRIPTS_CHECK_DIRNAME_LEVEL,DEVSCRIPTS_CHECK_DIRNAME_REGEXβ see the Directory name checking section above for what these do. note that these are package-wide configuration variables, so they'll affect all devscripts scripts which check their value, as described in their respective manpages and indevscripts.conf(5). it's giving very interconnected of them π
π SEE ALSO π
dput(1), dupload(1), devscripts.conf(5)
π AUTHOR π
Julian Gilbey <jdg@debian.org>, based on the original release script by Christoph Lameter <clameter@debian.org>.
and that's the whole page, bestie!! this one came out of the Debian camp, from the Debian Utilities collection, and it's dated DEBIAN β go off, we love a classic ππΈπ¦
π¦ where this page comes from
- fedora 43: devscripts 2.25.33-1.fc43 Β· GPL-2.0-or-later
- fedora 44: devscripts 2.26.5-1.fc44 Β· GPL-2.0-or-later
- ubuntu resolute: devscripts 2.26.7 Β· GPL-2.0-or-later
- ubuntu stonking: devscripts 2.26.11ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms