Dmitry V. Levin | 2afa76e | 2016-06-08 00:32:22 +0000 | [diff] [blame] | 1 | #!/bin/sh -e |
| 2 | |
| 3 | exec < /dev/null |
| 4 | |
| 5 | cat <<__EOF__ |
| 6 | Format: 1.0 |
| 7 | $(sed '/^Source:[[:space:]]*/!d;q' debian/control) |
| 8 | Binary: $(sed '/^Package:[[:space:]]*/!d;s///' debian/control | |
| 9 | tr '\n' ' ' | sed 's/ ./,&/g') |
| 10 | $(sed '/^Architecture:[[:space:]]*/!d;q' debian/control) |
Dmitry V. Levin | 469fd10 | 2016-07-28 16:51:58 +0000 | [diff] [blame] | 11 | Version: $(sed -r -n '1s/^[^(]*\(([^)]+)\).*/\1/p' debian/changelog) |
Dmitry V. Levin | 2afa76e | 2016-06-08 00:32:22 +0000 | [diff] [blame] | 12 | $(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) |
| 16 | Package-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') |
| 34 | Checksums-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) |
| 39 | Checksums-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) |
| 44 | Files: |
| 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__ |