ensure that version isn't empty

This commit is contained in:
Sylvestre Ledru 2019-11-13 09:18:24 +01:00
parent 12754e7bcf
commit 744669f6d5

5
debian/unpack.sh vendored
View File

@ -6,6 +6,11 @@ REV=`ls -1 *$ORIG_VERSION_$MAJOR_VERSION*~+*xz | tail -1|perl -ne 'print "$1\n"
#SVN_REV=347285
VERSION=$REV
#VERSION=+rc3
if test -z "$VERSION"; then
echo "Could not find the version"
exit 0
fi
LLVM_ARCHIVE=llvm-toolchain-${ORIG_VERSION}_$MAJOR_VERSION~+$VERSION.orig.tar.xz
echo "unpack of $LLVM_ARCHIVE"
tar Jxf $LLVM_ARCHIVE