]> piware.de Git - bin.git/blob - debian-backport-cockpit
google-chrome: Only change $HOME if it is the default
[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     ver=${ver%~bpo*}
7 }
8
9 upload() {
10     cat ../cockpit_*_source.changes
11
12     read -p "Upload? [y/N] " answer
13     if [ "$answer" = y ]; then
14         dput ../cockpit_*_source.changes
15     fi
16
17     cd ..
18     rm *bpo*
19     rm -r cockpit-*
20 }
21
22 mkdir /tmp/backport
23 cd  /tmp/backport
24 apt-get source cockpit
25 cd cockpit-*
26
27 # stretch
28 series_ver stretch-backports
29 dch --local ~bpo9+ --distribution stretch-backports --force-distribution "No-change backport to Debian Stretch"
30 debuild -S -sd -nc -v$ver
31 upload
32
33 # jessie
34 dpkg-source -x *.dsc
35 cd cockpit-*
36 series_ver jessie-backports-sloppy
37 dch --local ~bpo8+ --distribution jessie-backports-sloppy --force-distribution "No-change backport to Debian Jessie"
38 debuild -S -sd -nc -v$ver
39 echo "build this in a jessie schroot and upload"