
if [ -f ~/target_distro ]; then
	distro=$(cat ~/target_distro)
	sed -e "1s/(\\(.*\\))/(\1$distro)/" debian/changelog > chlog
	mv -f chlog debian/changelog
fi

DEB_BUILD_OPTIONS=debug dpkg-buildpackage

if [ $? -eq 2 ]; then
	exit 2
fi
exit 0
