blob: f0e958ad6f849936b26e1fae4bcb4fa0549906c9 [file] [log] [blame]
Dmitry V. Levin2afa76e2016-06-08 00:32:22 +00001#!/bin/sh -e
2
3exec < /dev/null
4
5cat <<__EOF__
6Format: 1.0
7$(sed '/^Source:[[:space:]]*/!d;q' debian/control)
8Binary: $(sed '/^Package:[[:space:]]*/!d;s///' debian/control |
9 tr '\n' ' ' | sed 's/ ./,&/g')
10$(sed '/^Architecture:[[:space:]]*/!d;q' debian/control)
Dmitry V. Levin469fd102016-07-28 16:51:58 +000011Version: $(sed -r -n '1s/^[^(]*\(([^)]+)\).*/\1/p' debian/changelog)
Dmitry V. Levin2afa76e2016-06-08 00:32:22 +000012$(sed '/^Maintainer:[[:space:]]*/!d;q' debian/control)
13$(sed '/^Homepage:[[:space:]]*/!d;q' debian/control)
14$(sed '/^Standards-Version:[[:space:]]*/!d;q' debian/control)
15$(sed '/^Build-Depends:[[:space:]]*/!d;q' debian/control)
16Package-List:
17 strace deb $(
18 sed '/^Section:[[:space:]]*/!d;s///;q' debian/control) $(
19 sed '/^Priority:[[:space:]]*/!d;s///;q' debian/control) arch=$(
20 sed -n "/^Package:[[:space:]]*strace\$/,/^\$/p" debian/control |
21 sed -e '/^Architecture:[[:space:]]*/!d;s///' -e 's/ /,/g')
22 strace64 deb $(sed '/^Section:[[:space:]]*/!d;s///;q' debian/control) $(
23 sed -n "/^Package:[[:space:]]*strace64\$/,/^\$/p" debian/control |
24 sed '/^Priority:[[:space:]]*/!d;s///;q') arch=$(
25 sed -n "/^Package:[[:space:]]*strace64\$/,/^\$/p" debian/control |
26 sed -e '/^Architecture:[[:space:]]*/!d;s///' -e 's/ /,/g')
27 strace-udeb udeb $(
28 sed -n "/^Package:[[:space:]]*strace-udeb\$/,/^\$/p" debian/control |
29 sed '/^Section:[[:space:]]*/!d;s///;q') $(
30 sed -n "/^Package:[[:space:]]*strace-udeb\$/,/^\$/p" debian/control |
31 sed '/^Priority:[[:space:]]*/!d;s///;q') arch=$(
32 sed -n "/^Package:[[:space:]]*strace-udeb\$/,/^\$/p" debian/control |
33 sed -e '/^Architecture:[[:space:]]*/!d;s///' -e 's/ /,/g')
34Checksums-Sha1:
35$(for f; do echo " $(
36 sha1sum -- "$f" | sed 's/ .*//') $(
37 stat -c %s -- "$f") $(
38 echo $f | sed 's/-/_/;s/\.tar/.orig&/')"; done)
39Checksums-Sha256:
40$(for f; do echo " $(
41 sha256sum -- "$f" | sed 's/ .*//') $(
42 stat -c %s -- "$f") $(
43 echo $f | sed 's/-/_/;s/\.tar/.orig&/')"; done)
44Files:
45$(for f; do echo " $(
46 md5sum -- "$f" | sed 's/ .*//') $(
47 stat -c %s -- "$f") $(
48 echo $f | sed 's/-/_/;s/\.tar/.orig&/')"; done)
49__EOF__