#!/bin/sh # post-NEW source-only uploads set -e if ! git is-clean; then echo >&2 "must commit first" exit 1 fi if [ "$(dpkg-parsechangelog -SDistribution)" = UNRELEASED ]; then echo >&2 "there are unreleased changes?" exit 1 fi if dpkg-parsechangelog | grep -q "Source-only upload\."; then echo >&2 "I believe you want 'debrel'" exit 1 fi debchange --no-auto-nmu Source-only upload. debchange --release git commit debian/changelog -m"Source-only upload" origtargz exec debrel "$@"