Check that the archive is actually created by "make distcheck"

This commit is contained in:
Pierre Pronchery 2014-12-02 22:00:05 +01:00
parent e1ba9f00c7
commit 153725e516

View File

@ -107,8 +107,9 @@ _deforaos_release()
fi
_info "Creating the archive..."
archive="$PACKAGE-$VERSION.tar.gz"
$DEBUG $MAKE distcheck
if [ $? -ne 0 ]; then
if [ $? -ne 0 -o ! -f "$archive" ]; then
_error "Could not create the archive"
return $?
fi