]> piware.de Git - bin.git/blobdiff - debian-backport-cockpit
Move RHEL tools from a separate toolbox to an install script
[bin.git] / debian-backport-cockpit
index b3d34407f6f03814387f41dc96a064051e47a3db..d4f4921a3ad1055ea921b73b2c4ee01cc5d8e860 100755 (executable)
@@ -3,10 +3,10 @@ set -eu
 
 series_ver() {
     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)
+    ver=${ver%~bpo*}
 }
 
 upload() {
-    debuild -S -sd -nc -v$ver
     cat ../cockpit_*_source.changes
 
     read -p "Upload? [y/N] " answer
@@ -24,14 +24,9 @@ cd  /tmp/backport
 apt-get source cockpit
 cd cockpit-*
 
-# stretch
-series_ver stretch-backports
-dch --local ~bpo9+ --distribution stretch-backports --force-distribution "No-change backport to Debian Stretch"
-upload
-
-# jessie
-dpkg-source -x *.dsc
-cd cockpit-*
-series_ver jessie-backports-sloppy
-dch --local ~bpo8+ --distribution jessie-backports-sloppy --force-distribution "No-change backport to Debian Jessie"
+# buster
+series_ver buster-backports
+debian/adjust-for-release buster
+dch --local ~bpo10+ --distribution buster-backports --force-distribution "No-change backport to Debian Buster"
+debuild -S -sd -nc -v$ver
 upload