summaryrefslogtreecommitdiff
path: root/maint/make-dsc
blob: ff8107052f6f70a3547f30ead23d29d6ff48ed1b (plain)
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
#!/bin/sh -e
#
# Copyright (c) 2016-2023 The strace developers.
# All rights reserved.
#
# SPDX-License-Identifier: LGPL-2.1-or-later

exec < /dev/null

cat <<__EOF__
Format: 1.0
$(sed '/^Source:[[:space:]]*/!d;q' debian/control)
Binary: $(sed '/^Package:[[:space:]]*/!d;s///' debian/control |
	tr '\n' ' ' | sed 's/ ./,&/g')
$(sed '/^Architecture:[[:space:]]*/!d;q' debian/control)
Version: $(sed -E -n '1s/^[^(]*\(([^)]+)\).*/\1/p' debian/changelog)
$(sed '/^Maintainer:[[:space:]]*/!d;q' debian/control)
$(sed '/^Homepage:[[:space:]]*/!d;q' debian/control)
$(sed '/^Standards-Version:[[:space:]]*/!d;q' debian/control)
$(sed '/^Build-Depends:[[:space:]]*/!d;q' debian/control)
Package-List:
 strace deb $(
	sed '/^Section:[[:space:]]*/!d;s///;q' debian/control) $(
	sed '/^Priority:[[:space:]]*/!d;s///;q' debian/control) arch=$(
	sed -n "/^Package:[[:space:]]*strace\$/,/^\$/p" debian/control |
		sed -e '/^Architecture:[[:space:]]*/!d;s///' -e 's/ /,/g')
 strace64 deb $(sed '/^Section:[[:space:]]*/!d;s///;q' debian/control) $(
	sed -n "/^Package:[[:space:]]*strace64\$/,/^\$/p" debian/control |
		sed '/^Priority:[[:space:]]*/!d;s///;q') arch=$(
	sed -n "/^Package:[[:space:]]*strace64\$/,/^\$/p" debian/control |
		sed -e '/^Architecture:[[:space:]]*/!d;s///' -e 's/ /,/g')
 strace-udeb udeb $(
	sed -n "/^Package:[[:space:]]*strace-udeb\$/,/^\$/p" debian/control |
		sed '/^Section:[[:space:]]*/!d;s///;q') $(
	sed -n "/^Package:[[:space:]]*strace-udeb\$/,/^\$/p" debian/control |
		sed '/^Priority:[[:space:]]*/!d;s///;q') arch=$(
	sed -n "/^Package:[[:space:]]*strace-udeb\$/,/^\$/p" debian/control |
		sed -e '/^Architecture:[[:space:]]*/!d;s///' -e 's/ /,/g')
Checksums-Sha1:
$(for f; do echo " $(
	sha1sum -- "$f" | sed 's/ .*//') $(
	stat -c %s -- "$f") $(
	echo $f | sed 's/-/_/;s/\.tar/.orig&/')"; done)
Checksums-Sha256:
$(for f; do echo " $(
	sha256sum -- "$f" | sed 's/ .*//') $(
	stat -c %s -- "$f") $(
	echo $f | sed 's/-/_/;s/\.tar/.orig&/')"; done)
Files:
$(for f; do echo " $(
	md5sum -- "$f" | sed 's/ .*//') $(
	stat -c %s -- "$f") $(
	echo $f | sed 's/-/_/;s/\.tar/.orig&/')"; done)
__EOF__