mysql/mysql_config_multilib.sh
Honza Horak 43d8322a00 Port some latest changes from MariaDB package to sync those packages
Error messages now provided by a separate package (thanks Alexander Barkov)
2014-07-22 07:41:09 +02:00

27 lines
527 B
Bash

#! /bin/bash
#
# Wrapper script for mysql_config to support multilib
#
# This command respects setarch
bits=$(rpm --eval %__isa_bits)
case $bits in
32|64) status=known ;;
*) status=unknown ;;
esac
if [ "$status" = "unknown" ] ; then
echo "$0: error: command 'rpm --eval %__isa_bits' returned unknown value: $bits"
exit 1
fi
if [ -x /usr/bin/mysql_config-$bits ] ; then
/usr/bin/mysql_config-$bits "$@"
else
echo "$0: error: needed binary: /usr/bin/mysql_config-$bits is missing"
exit 1
fi