mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2026-01-03 10:47:57 +00:00
try to fix the repack script
This commit is contained in:
parent
52131e56dc
commit
59ee6cbfbe
6
debian/unpack.sh
vendored
6
debian/unpack.sh
vendored
@ -1,7 +1,7 @@
|
||||
set -e
|
||||
ORIG_VERSION=13
|
||||
MAJOR_VERSION=13 # 8.0.1
|
||||
REV=`ls -1 *${ORIG_VERSION}_${MAJOR_VERSION}*~+*xz | tail -1|perl -ne 'print "$1\n" if /~\+(.*)\.orig/;' | sort -ru`
|
||||
MAJOR_VERSION=13.0.0 # 8.0.1
|
||||
REV=`ls -1 *${ORIG_VERSION}_${MAJOR_VERSION}*~+*xz | grep -v rc|tail -1|perl -ne 'print "$1\n" if /~\+(.*)\.orig/;' | sort -ru`
|
||||
|
||||
VERSION=$REV
|
||||
|
||||
@ -15,7 +15,7 @@ tar Jxf $LLVM_ARCHIVE
|
||||
cd llvm-toolchain-${ORIG_VERSION}_$MAJOR_VERSION~+$VERSION/
|
||||
|
||||
VER_FOUND=$(grep "PACKAGE_VERSION " libcxx/CMakeLists.txt|awk '{print $2}'|cut -d\) -f1)
|
||||
if test "${MAJOR_VERSION}" != "$VER_FOUND" -a "${MAJOR_VERSION}.0.0" != "$VER_FOUND" -a "${MAJOR_VERSION}.0.0git" != "$VER_FOUND"; then
|
||||
if test "${MAJOR_VERSION}" != "$VER_FOUND" -a "${MAJOR_VERSION}.0.0" != "$VER_FOUND" -a "${MAJOR_VERSION}.0.0git" != "$VER_FOUND" -a "${MAJOR_VERSION}git" != "$VER_FOUND"; then
|
||||
echo "Mismatch of version"
|
||||
echo "Expected $MAJOR_VERSION / Found $VER_FOUND"
|
||||
echo "Update unpack.sh"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user