]> git.sur5r.net Git - bacula/bacula/commitdiff
Tweak script
authorMarco van Wieringen <mvw@planets.elm.net>
Sat, 9 Jul 2011 15:43:23 +0000 (17:43 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:06 +0000 (14:49 +0200)
bacula/src/cats/install-default-backend.in

index d4a863de77cb75fa4ac1298221c6c152ff286b58..34fea4ce39d4cc786180496a606ec26f80b41c51 100755 (executable)
@@ -15,18 +15,20 @@ install_dir=$3
 # Find out what the shared lib extension is for this platform.
 #
 eval `${LIBTOOL} --config | grep shrext_cmds`
-if [ -z "${shrext_cmds}" ]; then
+eval SHLIB_EXT=$shrext_cmds
+
+if [ -z "${SHLIB_EXT}" ]; then
    echo "Failed to determine default shared library extension"
    exit 1
 fi
 
-if [ -f ${install_dir}/libbaccats-${default_backend}-${library_version}${shrext_cmds} ]; then
+if [ -f ${install_dir}/libbaccats-${default_backend}-${library_version}${SHLIB_EXT} ]; then
    #
    # Create a default catalog library pointing to one of the shared libs.
    #
-   rm -f ${install_dir}/libbaccats-${library_version}${shrext_cmds}
-   ln -s ${install_dir}/libbaccats-${default_backend}-${library_version}${shrext_cmds} \
-         ${install_dir}/libbaccats-${library_version}${shrext_cmds}
+   rm -f ${install_dir}/libbaccats-${library_version}${SHLIB_EXT}
+   ln -s ${install_dir}/libbaccats-${default_backend}-${library_version}${SHLIB_EXT} \
+         ${install_dir}/libbaccats-${library_version}${SHLIB_EXT}
 fi
 
 exit 0