]> git.proxmox.com Git - debcargo-conf.git/blobdiff - release.sh
cipher - drop block-padding feature.
[debcargo-conf.git] / release.sh
index ee218ea54edf5a02b2a66aa1281c67fe7882cd80..1bab92ccd27c61e8fd6ba60583dad95e94f62e8f 100755 (executable)
@@ -95,6 +95,16 @@ if head -n1 "$PKGDIR/debian/changelog" | grep -qv UNRELEASED-FIXME-AUTOGENERATED
          "    git push --delete origin $RELBRANCH"
 fi
 
+CHANGEDBY=$(dpkg-parsechangelog -l $PKGDIR/debian/changelog -SMaintainer)
+if [ "$CHANGEDBY" != "$UPLOADER" ]; then
+       cat <<eof
+Changes by $CHANGEDBY to be sponsored by $UPLOADER.
+eof
+       if ! test -e $PKGDIR/debian/RFS; then
+               abort 1 "Sponsored upload, but $PKGDIR/debian/RFS does not exist"
+       fi
+fi
+
 ( cd "$PKGDIR"
 sed -i -e s/UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO/UNRELEASED/ debian/changelog
 if test -z "$DISTRO"; then
@@ -206,7 +216,7 @@ new binaries, then you can just go ahead and directly dput the source package.
 
 If you want to build and test it, run:
 
-  cd build && ./build.sh $CRATE && dput ${DEBSRC}_${DEBVER}_source.changes && git checkout - && git merge -
+  cd build && ./build.sh $CRATE && dput ${DEBSRC}_${DEBVER}_source.changes && git checkout - && git merge - && cd -
 
 For your reference, this source package builds $(echo "$upload_bin_packages" | wc -l) binary package(s):
 $upload_bin_packages