]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cclass: add bindir option
authorJosh Durgin <josh.durgin@dreamhost.com>
Fri, 1 Apr 2011 23:59:28 +0000 (16:59 -0700)
committerJosh Durgin <josh.durgin@dreamhost.com>
Fri, 1 Apr 2011 23:59:59 +0000 (16:59 -0700)
Ceph binaries don't live in /usr/local on autotest machines.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
src/cclass.in

index 7c615d5207fcdd55e9706ebaabeb06031e0e1044..099564e1e05ace02a92a21005ae2e26cae0cf4fc 100644 (file)
@@ -20,6 +20,7 @@ load_opt="changed"
 
 usage="usage: $0 [option]... [cls_filename]\n"
 usage=$usage"options:\n"
+usage=$usage"\t-b, --bindir <path>\n"
 usage=$usage"\t-L, --libdir <path>\n"
 usage=$usage"\t-l, --load\n"
 usage=$usage"\t-a, --load-all\n"
@@ -41,9 +42,13 @@ err_exit() {
 
 while [ $# -ge 1 ]; do
 case $1 in
+    -b | --bindir )
+           shift
+           BINDIR=$1
+           ;;
     -L | --libdir )
            shift
-            libdir=$1
+           libdir=$1
            ;;
     -l | --load )
            load=1