mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-08-07 06:02:06 +00:00
don't parse the conf when coming from snapshot
This commit is contained in:
parent
62000312ac
commit
f86979f288
18
debian/orig-tar.sh
vendored
18
debian/orig-tar.sh
vendored
@ -135,14 +135,16 @@ if test -z "$TAG" -a -z "$FINAL_RELEASE"; then
|
|||||||
VERSION=$MAJOR_VERSION
|
VERSION=$MAJOR_VERSION
|
||||||
MAJOR_VERSION=snapshot
|
MAJOR_VERSION=snapshot
|
||||||
fi
|
fi
|
||||||
# When upstream released X, they will update X to have X.0.1
|
if test $MAJOR_VERSION != "snapshot"; then
|
||||||
# In general, in Debian, we will keep X until X.0.1 is released (or rc in experimental)
|
# When upstream released X, they will update X to have X.0.1
|
||||||
# However, on apt.llvm.org, we will update the version to have X.0.1
|
# In general, in Debian, we will keep X until X.0.1 is released (or rc in experimental)
|
||||||
# This code is doing that.
|
# However, on apt.llvm.org, we will update the version to have X.0.1
|
||||||
MAJOR=$(grep "set(LLVM_VERSION_MAJOR" llvm/CMakeLists.txt|sed -e "s|.*LLVM_VERSION_MAJOR \(.*\))|\1|")
|
# This code is doing that.
|
||||||
MINOR=$(grep "set(LLVM_VERSION_MINOR" llvm/CMakeLists.txt|sed -e "s|.*LLVM_VERSION_MINOR \(.*\))|\1|")
|
MAJOR=$(grep "set(LLVM_VERSION_MAJOR" llvm/CMakeLists.txt|sed -e "s|.*LLVM_VERSION_MAJOR \(.*\))|\1|")
|
||||||
PATCH=$(grep "set(LLVM_VERSION_PATCH" llvm/CMakeLists.txt|sed -e "s|.*LLVM_VERSION_PATCH \(.*\))|\1|")
|
MINOR=$(grep "set(LLVM_VERSION_MINOR" llvm/CMakeLists.txt|sed -e "s|.*LLVM_VERSION_MINOR \(.*\))|\1|")
|
||||||
CURRENT_VERSION="$MAJOR.$MINOR.$PATCH"
|
PATCH=$(grep "set(LLVM_VERSION_PATCH" llvm/CMakeLists.txt|sed -e "s|.*LLVM_VERSION_PATCH \(.*\))|\1|")
|
||||||
|
CURRENT_VERSION="$MAJOR.$MINOR.$PATCH"
|
||||||
|
fi
|
||||||
# the + is here to make sure that this version is considered more recent than the svn
|
# the + is here to make sure that this version is considered more recent than the svn
|
||||||
# dpkg --compare-versions 10~svn374977-1~exp1 lt 10~+2019-svn374977-1~exp1
|
# dpkg --compare-versions 10~svn374977-1~exp1 lt 10~+2019-svn374977-1~exp1
|
||||||
# to verify that
|
# to verify that
|
||||||
|
Loading…
Reference in New Issue
Block a user