Support newest libjpeg-turbo on Centos

This commit is contained in:
Dmitry Maksyoma
2023-01-19 01:35:36 +13:00
parent d1cc18f751
commit 23676ab3b3
3 changed files with 35 additions and 4 deletions

13
builder/scripts/common.sh Normal file
View File

@@ -0,0 +1,13 @@
detect_distro() {
if [ -f /etc/centos-release ]; then
DISTRO=centos
elif [ -f /etc/oracle-release ]; then
DISTRO=oracle7
elif [ -f /usr/bin/zypper ]; then
DISTRO=opensuse
else
DISTRO=debian
fi
}
detect_distro