File: pk4-replace.1

package info (click to toggle)
pk4 5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 1,016 kB
  • sloc: sh: 146; makefile: 7
file content (81 lines) | stat: -rw-r--r-- 1,579 bytes parent folder | download | duplicates (2)
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
.de Vb \" Begin verbatim text
.ft CW
.nf
.ne \\$1
..
.de Ve \" End verbatim text
.ft R
.fi
..

.TH pk4-replace 1 "OCTOBER 2017" Linux "User Manuals"

.SH NAME
pk4-replace \- build sources and replace currently installed packages

.SH SYNOPSIS
.B pk4-replace
.RB [ \fBoptions\fR ]

.SH DESCRIPTION
.B pk4-replace
builds the sources in the current directory using sbuild, then replaces the
subset of currently installed binary packages with the newly built packages.
.SH OPTIONS
.TP
.B \-dry_run
Print the build command and exit
.SH EXAMPLES
.TP
.BR
.nf
.RS
# Fetch the i3 source, apply a bugfix, rebuild and replace installed packages:
pk4 i3
patch -p1 < /tmp/myfix.patch
pk4-replace
.RE
.fi
.SH CONFIGURATION FILE
The following attributes can be configured in \fI~/.config/pk4/pk4.deb822\fR:
.TP
.B Build-Command \fIstrings\fR
The command to use for building the sources in the current directory. Must write
the path to the resulting .changes file to the pipe \fB/proc/self/fd/3\fR when
done.
.PP
Example (default):
.PP
.nf
.RS
Build-Command:
  sbuild
  --post-build-commands
  echo %SBUILD_CHANGES > /proc/self/fd/3
  -A
  --no-clean-source
  --dpkg-source-opt=--auto-commit
.RE
.fi
.PP
Example (illustrating how one line is one argv element):
.PP
.nf
.RS
Build-Command:
  sbuild
  --post-build-commands
  echo %SBUILD_CHANGES > /proc/self/fd/3
  -d
  stretch
.RE
.fi
.SH SEE ALSO
.TP
.IR pk4(1)
make available the Debian source package producing the specified package
.TP
.IR sbuild(1)
build debian packages from source
.SH AUTHOR
Michael Stapelberg <stapelberg at debian.org>