here is the installclientlib.sh script
#!/bin/sh
INSTALLPERMS=$1 BASEDIR=$2 LIBDIR=$3 INCLUDEDIR=$4 shift shift shift shift echo libdir = $LIBDIR echo includedir = $INCLUDEDIR for p in $*; do p2=`basename $p` if [ -f $LIBDIR/$p2 ]; then rm -f $LIBDIR/$p2.old mv $LIBDIR/$p2 $LIBDIR/$p2.old fi #if the file ends in .h put in in the include area... if (expr $p2 : '.\+\.h$' > /dev/null); then echo Installing $p as $INCLUDEDIR/$p2 #make sure INCLUDEDIR exists mkdir -p $INCLUDEDIR cp $p $INCLUDEDIR/ chmod $INSTALLPERMS $INCLUDEDIR/$p2 else echo Installing $p as $LIBDIR/$p2 mkdir -p $LIBDIR cp $p $LIBDIR/ chmod $INSTALLPERMS $LIBDIR/$p2 fi done cat << EOF ====================================================================== The smbclient libraries are installed. You may restore the old libs (if there were any) using the command "make revert". ====================================================================== EOF exit 0