6
if [ -e ssh-askpass-keyring-$VERSION ]; then
7
mv ssh-askpass-keyring-$VERSION source || exit 1
9
if [ -e source/debian ]; then
10
mv source/debian packaging/debian || exit 1
17
echo "USAGE: $0 version" >&2
24
for file in PKG-INFO README setup.py; do
25
if ! egrep -q "[Vv]ersion.*$VERSION" source/$file; then
26
echo "Version number in source/$file does not match $VERSION" >&2
27
missing=$(( missing + 1 ))
31
if ! egrep -q "ssh-askpass-keyring $VERSION" source/ChangeLog; then
32
echo "Version number in source/ChangeLog does not match $VERSION" >&2
33
missing=$(( missing + 1 ))
36
if ! egrep -q "ssh-askpass-keyring \($VERSION" packaging/debian/changelog; then
37
echo "Version number in packaging/debian/changelog does not match $VERSION" >&2
38
missing=$(( missing + 1 ))
41
if [ $missing -ne 0 ]; then
45
if [ -e ssh-askpass-keyring-$VERSION ] || [ ! -e source ]; then
46
echo "Expected directory source and no directory ssh-askpass-keyring-$VERSION" >&2
50
mv source ssh-askpass-keyring-$VERSION || exit 1
52
cd ssh-askpass-keyring-$VERSION
53
./setup.py sdist || cleanup_exit 1
55
mv dist/ssh-askpass-keyring-$VERSION.tar.gz ../ssh-askpass-keyring_$VERSION.orig.tar.gz
57
if [ ! -e debian ]; then
58
mv ../packaging/debian debian || cleanup_exit 1
61
debuild || cleanup_exit 1
62
echo "Successfully built binary package for ssh-askpass-keyring-$VERSION."
63
printf "Press enter to continue ..."
65
debuild -S || cleanup_exit 1