3 # Bacula® - The Network Backup Solution
5 # Copyright (C) 2000-2014 Free Software Foundation Europe e.V.
7 # The main author of Bacula is Kern Sibbald, with contributions from many
8 # others, a complete list can be found in the file AUTHORS.
10 # You may use this file and others of this release according to the
11 # license defined in the LICENSE file, which includes the Affero General
12 # Public License, v3.0 ("AGPLv3") and some additional permissions and
13 # terms pursuant to its AGPLv3 Section 7.
15 # Bacula® is a registered trademark of Kern Sibbald.
19 LIBTOOL="@BUILD_DIR@/libtool"
22 echo "Usage: $0 <default_backend> <library_version> <install_dir>"
31 # Find out what the shared lib extension is for this platform.
33 eval `${LIBTOOL} --config | grep shrext_cmds`
34 eval SHLIB_EXT=$shrext_cmds
36 if [ -z "${SHLIB_EXT}" ]; then
37 echo "Failed to determine default shared library extension"
41 if [ -f ${install_dir}/libbaccats-${default_backend}-${library_version}${SHLIB_EXT} ]; then
43 # Create a default catalog library pointing to one of the shared libs.
45 rm -f ${install_dir}/libbaccats-${library_version}${SHLIB_EXT}
48 # Create a relative symlink to the default backend
49 # As all backends are in the same directory anyhow this should
52 ln -s libbaccats-${default_backend}${SHLIB_EXT} \
53 ${install_dir}/libbaccats-${library_version}${SHLIB_EXT}