#!/bin/bash -e

_OS_VERSION=hardy
_REPO_NAME=yandex-hardy
_ARCH=i386

grep -q "$cfg{'${_REPO_NAME}'}" ${HOME}/.dupload.conf || { echo "ERROR: ${_REPO_NAME} repo not configured in .dupload.conf"; exit 1; }
DEB_BUILD_OPTIONS="os_version=${_OS_VERSION}" debuild -b -a${_ARCH}
echo "Perform dupload to ${_REPO_NAME}: call 'dupload --to ${_REPO_NAME} yandex-webmaster-libhtnorm*_${_ARCH}.changes'"
