Skip to content
Snippets Groups Projects
Commit 970151c4 authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

fix: VERSION_ID to VERSION_CODENAME

parent 0730ab7a
No related branches found
No related tags found
1 merge request!778feat: install iwyu in spack
This commit is part of merge request !778. Comments created here will be created in the context of that merge request.
...@@ -75,16 +75,17 @@ mkdir -p /etc/apt/source.list.d ...@@ -75,16 +75,17 @@ mkdir -p /etc/apt/source.list.d
# GCC version and repository # GCC version and repository
case ${ID} in case ${ID} in
debian) debian)
case ${VERSION_ID} in case ${VERSION_CODENAME} in
12) GCC="-12" ;; bookworm) GCC="-12" ;;
*) echo "Unsupported VERSION_ID=${VERSION_ID}" ; exit 1 ;; trixie) GCC="-13" ;;
*) echo "Unsupported VERSION_CODENAME=${VERSION_CODENAME}" ; exit 1 ;;
esac ;; esac ;;
ubuntu) ubuntu)
echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/ppa/ubuntu/${VERSION_CODENAME} main" > /etc/apt/source.list.d/ubuntu-toolchain.list echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/ppa/ubuntu/${VERSION_CODENAME} main" > /etc/apt/source.list.d/ubuntu-toolchain.list
case ${VERSION_ID} in case ${VERSION_CODENAME} in
20.04) GCC="-10" ;; focal) GCC="-10" ;;
22.04) GCC="-12" ;; jammy) GCC="-12" ;;
*) echo "Unsupported VERSION_ID=${VERSION_ID}" ; exit 1 ;; *) echo "Unsupported VERSION_CODENAME=${VERSION_CODENAME}" ; exit 1 ;;
esac ;; esac ;;
*) echo "Unsupported ID=${ID}" ; exit 1 ;; *) echo "Unsupported ID=${ID}" ; exit 1 ;;
esac esac
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment