| 1 |
.TH PKGKDE\-VCS 1 "2012-05-27" "0.15" "Debian KDE packaging VCS helper" |
| 2 |
.SH NAME |
| 3 |
.B pkgkde\-vcs |
| 4 |
\- a helper tool for Debian pkg-kde VCS repositories. |
| 5 |
.SH SYNOPSIS |
| 6 |
.B pkgkde\-vcs |
| 7 |
[\fB\-vy\fR] \fIsubcommand\fR [ \fISUBCOMMAND OPTIONS\fR ] [ -- \fIEXTERNAL TOOL OPTIONS\fR ] |
| 8 |
.P |
| 9 |
.B pkgkde\-git |
| 10 |
[\fB\-vy\fR] \fIsubcommand\fR [ \fISUBCOMMAND OPTIONS\fR ] [ -- \fIEXTERNAL TOOL OPTIONS\fR ] |
| 11 |
.SH DESCRIPTION |
| 12 |
.B pkgkde\-vcs |
| 13 |
is a helper tool which aims to simplify a couple of routine tasks associated |
| 14 |
with packaging management in version control system (VCS) repositories. |
| 15 |
\fBpkgkde\-vcs\fR transparently supports VCSes used by Debian Qt/KDE maintainer |
| 16 |
groups wrapping various VCS related command sequences into a convenient CLI |
| 17 |
interface. Please note that this helper enforces the best practises and |
| 18 |
packaging conventions adopted by Debian Qt/KDE maintainer groups and therefore |
| 19 |
it should not be considered as a general purpose packaging helper. |
| 20 |
|
| 21 |
.B pkgkde\-vcs |
| 22 |
should be run from the fully checked out packaging repository of the package it |
| 23 |
is supposed to act upon. Firstly, it attempts to detect a VCS in use for |
| 24 |
the particular packaging in the working directory. Please note, that the |
| 25 |
detection might fail if underlying VCS utilities are not installed. If you want |
| 26 |
or have to force a specific VCS type, run the command as \fIpkgkde\-$vcs\fR, |
| 27 |
for example \fBpkgkde-git\fR. |
| 28 |
|
| 29 |
If detection is successful, \fBpkgkde\-vcs\fR will perform tasks as defined for |
| 30 |
the specified \fIsubcommand\fR (e.g. tag). Different set of subcommands might |
| 31 |
be defined for each VCS and each of them might accept a different set of \fISUBCOMMAND |
| 32 |
OPTIONS\fR (see below). All locally unrecognized subcommand options (or the |
| 33 |
ones specified as \fIEXTERNAL TOOL OPTIONS\fR after \-\-) will be passed to the |
| 34 |
external VCS tool(s) which \fBpkgkde\-vcs\fR executes to do the job. |
| 35 |
|
| 36 |
.B pkgkde\-vcs |
| 37 |
accepts a couple of \fIcommon options\fR which apply to the |
| 38 |
helper as whole or are common for all VCSes it supports. They should be passed |
| 39 |
before \fIsubcommand\fR in order to be recognized. |
| 40 |
|
| 41 |
Even if \fBpkgkde\-vcs\fR does extensive sanity checks before doing anything, |
| 42 |
an underlying command it executes might still fail. Then \fBpkgkde\-vcs\fR will |
| 43 |
terminate immediately possibly leaving repository in an inconsistent state. It is |
| 44 |
up to a user to recover from such a failure. |
| 45 |
|
| 46 |
At the moment, \fBpkgkde\-vcs\fR supports only \fIGit\fR VCS. |
| 47 |
|
| 48 |
.SH OPTIONS |
| 49 |
.SS Common options |
| 50 |
.TP |
| 51 |
.B \-y |
| 52 |
By default, execution of the first external command that makes changes to the |
| 53 |
repository has to be explicitly confirmed by user. However, if this option is |
| 54 |
specified, the first command will be run without confirmation. |
| 55 |
.TP |
| 56 |
.B \-n |
| 57 |
Do not run any external commands that make changes to the repository. Useful |
| 58 |
with \fB\-v\fR to see what commands with what options would be run. |
| 59 |
.TP |
| 60 |
.B \-v |
| 61 |
Be more verbose (e.g. show external commands as they are executed). |
| 62 |
.TP |
| 63 |
.BI \-\-\ "\fIEXTERNAL TOOL OPTIONS\fR" |
| 64 |
Pass additional \fIEXTERNAL TOOL OPTIONS\fR to the external commands |
| 65 |
\fBpkgkde\-vcs\fR executes to accomplish the task. See documentations of the |
| 66 |
specific \fIsubcommand\fR for more details. |
| 67 |
|
| 68 |
.SH SUPPORTED VERSION CONTROL SYSTEMS AND SUBCOMMANDS |
| 69 |
.SS Git |
| 70 |
In order to use \fBpkgkde\-vcs\fR with Git, \fIgit(1)\fR must be available in \fIPATH\fR. |
| 71 |
Bare Git repositories are not supported and Git repository should be in the fully checked |
| 72 |
out state (except \fBclone\fR). The following subcommands for Git repositories are supported |
| 73 |
at the moment: |
| 74 |
|
| 75 |
.TP |
| 76 |
.B clone |
| 77 |
Clone the specified pkg\-kde git repository. This subcommand should be specified |
| 78 |
by forcing VCS to git, i.e. by running \fIpkgkde\-git\fR command rather than |
| 79 |
\fIpkgkde-vcs\fR. |
| 80 |
|
| 81 |
Repository should be specified relatively to the root of the official pkg-kde |
| 82 |
repository tree. Once operation is complete, the cloned repository will be put |
| 83 |
at the same relative location on the local filesystem and \fBupdate\-config\fR |
| 84 |
(see below) will be executed on it. |
| 85 |
|
| 86 |
For example, in order to clone kde4libs repository from \fIkde\-sc\fR, |
| 87 |
akonadi repository from \fIkde\-req\fR and pkg\-kde\-tools repository from the |
| 88 |
root tree, execute: |
| 89 |
.P |
| 90 |
.RS |
| 91 |
$ pkgkde\-git clone kde\-sc/kde4libs |
| 92 |
.P |
| 93 |
$ pkgkde\-git clone kde\-req/akonadi |
| 94 |
.P |
| 95 |
$ pkgkde\-git clone pkg\-kde\-tools |
| 96 |
.RE |
| 97 |
|
| 98 |
.TP |
| 99 |
.B tag |
| 100 |
Tag current packaging state (HEAD) as upload to Debian archive. Repository |
| 101 |
working tree must be clean before executing this subcommand. Current package |
| 102 |
version and target distribution are automatically determined from |
| 103 |
\fIdebian/changelog\fR. Distribution must be a valid Debian suite in order to |
| 104 |
avoid tagging of unfinished (aka UNRELEASED) revisions. |
| 105 |
|
| 106 |
The subcommand will create an annotated Git tag under "debian/" namespace. The |
| 107 |
subcommand itself does not accept any additional options. All \fIEXTERNAL TOOL |
| 108 |
OPTIONS\fR (if specified) and will be passed to \fBgit tag\fR invocation. It is |
| 109 |
recommended to sign tags by specifying \fB-s\fR option. |
| 110 |
|
| 111 |
The tag created by \fBpkgkde\-vcs tag\fR will meet the following requirements: |
| 112 |
.RS |
| 113 |
.IP \(bu |
| 114 |
The tag will named as "debian/<version>" where <version> is a full debian |
| 115 |
package version without epoch. All occurrences of the ~ character in <version> |
| 116 |
will be replaced with the \- character because Git does not support ~ character |
| 117 |
in tag names. |
| 118 |
.IP \(bu |
| 119 |
The tag will be assigned the message with content like |
| 120 |
<version>/<distribution>" where <version> is a full debian version of the |
| 121 |
package (without any modifications including epoch) and <distribution> is the |
| 122 |
distribution this package is uploaded. |
| 123 |
.P |
| 124 |
For example, a standard \fBpkgkde\-vcs tag\fR will execute the following under |
| 125 |
the hood (assuming version is 1:2.3.4-5 and distribution is experimental): |
| 126 |
.P |
| 127 |
.RS |
| 128 |
$ git tag debian/2.3.4-5 \-m "1:2.3.4-5/experimental" |
| 129 |
.RE |
| 130 |
.RE |
| 131 |
|
| 132 |
.TP |
| 133 |
.B update\-config |
| 134 |
Do some common configuration on the checked out packaging repository. At the |
| 135 |
moment, the subcommand performs the following: |
| 136 |
.RS |
| 137 |
.IP \(bu |
| 138 |
Set up master branch and debian tags for pushing. \fB\-f\fR option may be |
| 139 |
specified to force update of the pushing configuration even if some pushing |
| 140 |
configuration already exists. |
| 141 |
.IP \(bu |
| 142 |
Set repository user name and email address to the values of the |
| 143 |
\fBDEBFULLNAME\fR and \fBDEBEMAIL\fR environment variables respectively. |
| 144 |
\fB\-f\fR option may be specified to override the values even if the repository |
| 145 |
has some specified already. |
| 146 |
.RE |
| 147 |
|
| 148 |
.SH LICENSE |
| 149 |
.P |
| 150 |
This program is free software: you can redistribute it and/or modify |
| 151 |
it under the terms of the GNU General Public License as published by |
| 152 |
the Free Software Foundation, either version 3 of the License, or |
| 153 |
(at your option) any later version. |
| 154 |
.SH AUTHORS |
| 155 |
Modestas Vainius <[email protected]> |