]> piware.de Git - bin.git/blob - debian-backport-cockpit
retry-gh-systemd-test: xenial -> artful
[bin.git] / debian-backport-cockpit
1 #!/bin/sh
2 set -eu
3
4 series_ver() {
5     ver=$(wget -q -O- http://ftp.debian.org/debian/dists/${1}/main/source/Sources.xz | xz -d | grep-dctrl -n -sVersion -P cockpit | sort -u | tail -n1)
6 }
7
8 upload() {
9     cat ../cockpit_*_source.changes
10
11     read -p "Upload? [y/N] " answer
12     if [ "$answer" = y ]; then
13         dput ../cockpit_*_source.changes
14     fi
15
16     cd ..
17     rm *bpo*
18     rm -r cockpit-*
19 }
20
21 mkdir /tmp/backport
22 cd  /tmp/backport
23 apt-get source cockpit
24 cd cockpit-*
25
26 # stretch
27 series_ver stretch-backports
28 dch --local ~bpo9+ --distribution stretch-backports --force-distribution "No-change backport to Debian Stretch"
29 debuild -S -sd -nc -v$ver
30 upload
31
32 # jessie
33 dpkg-source -x *.dsc
34 cd cockpit-*
35 series_ver jessie-backports-sloppy
36 dch --local ~bpo8+ --distribution jessie-backports-sloppy --force-distribution "No-change backport to Debian Jessie"
37 debuild -S -sd -nc -v$ver
38 echo "build this in a jessie schroot and upload"