make.sh set LIB_VERSION to lib for Ubuntu and Debian

fstore_storage_engine
YuQing 2022-11-20 17:00:35 +08:00
parent 3578c0f0af
commit f262e60259
1 changed files with 12 additions and 1 deletions

13
make.sh
View File

@ -15,8 +15,19 @@ else
OS_BITS=64
fi
uname=$(uname)
if [ "$OS_BITS" -eq 64 ]; then
LIB_VERSION=lib64
if [ $uname = 'Linux' ]; then
osname=$(cat /etc/os-release | grep -w NAME | awk -F '=' '{print $2;}' | \
awk -F '"' '{if (NF==3) {print $2} else {print $1}}' | awk '{print $1}')
if [ $osname = 'Ubuntu' -o $osname = 'Debian' ]; then
LIB_VERSION=lib
else
LIB_VERSION=lib64
fi
else
LIB_VERSION=lib
fi
else
LIB_VERSION=lib
fi