]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cclass.in: LIBDIR=.libs in certain cases
authorYehuda Sadeh <yehuda@hq.newdream.net>
Tue, 29 Jun 2010 22:13:56 +0000 (15:13 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Tue, 29 Jun 2010 23:00:05 +0000 (16:00 -0700)
src/cclass.in

index a51ed7516a89c79465bfa154da7bb4e3a5432db3..8850bf2d6e332cfc9be6a2b2f2dc555b4552612c 100755 (executable)
@@ -7,7 +7,7 @@ libdir=""
 
 if [ `dirname $0` = "." ] && [ $PWD != "/etc/init.d" ]; then
     BINDIR=.
-    LIBDIR=.
+    [ -e .libs ] && LIBDIR=.libs || LIBDIR=.
     ETCDIR=.
 else
     BINDIR=@bindir@
@@ -84,7 +84,7 @@ load() {
 
 load_all() {
        all=`find $LIBDIR -name 'libcls_*.so'`;
-       if [ -z "$all" ]; then
+       if [ -n "$all" ]; then
                for fn in $all; do
                        echo Loading class: $fn: `$BINDIR/cclsinfo $fn`
                        load $fn