blob: 35ae4fcb1ff6758fdd701297ca79c7f9c05cd7c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/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 "$@"
|