]> granicus.if.org Git - strace/blob - make-dsc
xlat: provide fallback definitions for XDP_FLAGS_* constants
[strace] / make-dsc
1 #!/bin/sh -e
2 #
3 # Copyright (c) 2016-2018 The strace developers.
4 # All rights reserved.
5 #
6 # SPDX-License-Identifier: LGPL-2.1-or-later
7
8 exec < /dev/null
9
10 cat <<__EOF__
11 Format: 1.0
12 $(sed '/^Source:[[:space:]]*/!d;q' debian/control)
13 Binary: $(sed '/^Package:[[:space:]]*/!d;s///' debian/control |
14         tr '\n' ' ' | sed 's/ ./,&/g')
15 $(sed '/^Architecture:[[:space:]]*/!d;q' debian/control)
16 Version: $(sed -r -n '1s/^[^(]*\(([^)]+)\).*/\1/p' debian/changelog)
17 $(sed '/^Maintainer:[[:space:]]*/!d;q' debian/control)
18 $(sed '/^Homepage:[[:space:]]*/!d;q' debian/control)
19 $(sed '/^Standards-Version:[[:space:]]*/!d;q' debian/control)
20 $(sed '/^Build-Depends:[[:space:]]*/!d;q' debian/control)
21 Package-List:
22  strace deb $(
23         sed '/^Section:[[:space:]]*/!d;s///;q' debian/control) $(
24         sed '/^Priority:[[:space:]]*/!d;s///;q' debian/control) arch=$(
25         sed -n "/^Package:[[:space:]]*strace\$/,/^\$/p" debian/control |
26                 sed -e '/^Architecture:[[:space:]]*/!d;s///' -e 's/ /,/g')
27  strace64 deb $(sed '/^Section:[[:space:]]*/!d;s///;q' debian/control) $(
28         sed -n "/^Package:[[:space:]]*strace64\$/,/^\$/p" debian/control |
29                 sed '/^Priority:[[:space:]]*/!d;s///;q') arch=$(
30         sed -n "/^Package:[[:space:]]*strace64\$/,/^\$/p" debian/control |
31                 sed -e '/^Architecture:[[:space:]]*/!d;s///' -e 's/ /,/g')
32  strace-udeb udeb $(
33         sed -n "/^Package:[[:space:]]*strace-udeb\$/,/^\$/p" debian/control |
34                 sed '/^Section:[[:space:]]*/!d;s///;q') $(
35         sed -n "/^Package:[[:space:]]*strace-udeb\$/,/^\$/p" debian/control |
36                 sed '/^Priority:[[:space:]]*/!d;s///;q') arch=$(
37         sed -n "/^Package:[[:space:]]*strace-udeb\$/,/^\$/p" debian/control |
38                 sed -e '/^Architecture:[[:space:]]*/!d;s///' -e 's/ /,/g')
39 Checksums-Sha1:
40 $(for f; do echo " $(
41         sha1sum -- "$f" | sed 's/ .*//') $(
42         stat -c %s -- "$f") $(
43         echo $f | sed 's/-/_/;s/\.tar/.orig&/')"; done)
44 Checksums-Sha256:
45 $(for f; do echo " $(
46         sha256sum -- "$f" | sed 's/ .*//') $(
47         stat -c %s -- "$f") $(
48         echo $f | sed 's/-/_/;s/\.tar/.orig&/')"; done)
49 Files:
50 $(for f; do echo " $(
51         md5sum -- "$f" | sed 's/ .*//') $(
52         stat -c %s -- "$f") $(
53         echo $f | sed 's/-/_/;s/\.tar/.orig&/')"; done)
54 __EOF__