From 0ea104b121bdeb3c03a464716a8965b434a8d17b Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Tue, 2 Dec 2014 20:59:39 +0100 Subject: [PATCH] Use "make distcheck" to build-check the release --- src/deforaos-release.sh | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/src/deforaos-release.sh b/src/deforaos-release.sh index ef8ecc8..4bbc5f3 100755 --- a/src/deforaos-release.sh +++ b/src/deforaos-release.sh @@ -105,30 +105,12 @@ _deforaos_release() fi _info "Creating the archive..." - $DEBUG $MAKE dist + $DEBUG $MAKE distcheck if [ $? -ne 0 ]; then _error "Could not create the archive" return $? fi - #check the archive - _info "Checking the archive..." - archive="$PACKAGE-$VERSION.tar.gz" - $DEBUG $TAR -xzf "$archive" - if [ $? -ne 0 ]; then - $DEBUG $RM -r -- "$PACKAGE-$VERSION" - _error "Could not extract the archive" - return $? - fi - (cd "$PACKAGE-$VERSION" && $DEBUG $MAKE) - res=$? - $DEBUG $RM -r -- "$PACKAGE-$VERSION" - if [ $res -ne 0 ]; then - $DEBUG $RM -- "$archive" - _error "Could not validate the archive" - return $? - fi - #tagging the release tag=$(echo $version | $TR . -) tag="${PACKAGE}_$tag"