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