3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
7 LIBTOOL="@BUILD_DIR@/libtool"
10 echo "Usage: $0 <default_backend> <library_version> <install_dir>"
19 # Find out what the shared lib extension is for this platform.
21 eval `${LIBTOOL} --config | grep shrext_cmds`
22 eval SHLIB_EXT=$shrext_cmds
24 if [ -z "${SHLIB_EXT}" ]; then
25 echo "Failed to determine default shared library extension"
29 if [ -f ${install_dir}/libbaccats-${default_backend}-${library_version}${SHLIB_EXT} ]; then
31 # Create a default catalog library pointing to one of the shared libs.
33 rm -f ${install_dir}/libbaccats-${library_version}${SHLIB_EXT}
36 # Create a relative symlink to the default backend
37 # As all backends are in the same directory anyhow this should
40 ln -s libbaccats-${default_backend}${SHLIB_EXT} \
41 ${install_dir}/libbaccats-${library_version}${SHLIB_EXT}