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)
10 cat ../cockpit_*_source.changes
12 read -p "Upload? [y/N] " answer
13 if [ "$answer" = y ]; then
14 dput ../cockpit_*_source.changes
24 apt-get source cockpit
28 series_ver stretch-backports
29 debian/adjust-for-release stretch
30 dch --local ~bpo9+ --distribution stretch-backports --force-distribution "No-change backport to Debian Stretch"
31 debuild -S -sd -nc -v$ver
37 #series_ver jessie-backports-sloppy
38 #dch --local ~bpo8+ --distribution jessie-backports-sloppy --force-distribution "No-change backport to Debian Jessie"
39 #debuild -S -sd -nc -v$ver
40 #echo "build this in a jessie schroot and upload"