#! /bin/sh
set -e

cd @LIB_DIR@

# Do nothing if old name is already present
test -e libmysqlcppconn8.so.2 && return 0

# Also skip compatibility link if the target library is not present
# (e.g, the ABI version has changed)
test -e libmysqlcppconnx.so.2 || return 0

#echo "Creating compatibility link: ${LIBDIR}/libmysqlcppconn8.so.2"
ln -s libmysqlcppconnx.so.2 libmysqlcppconn8.so.2
