软连接创建函数
function slink()
{
SRCFILE =$1 /$2
DESTFILE =$1 /$3
if [!-f $DESTFILE]; then
if [-f $SRCFILE]; then
ln - s $SRCFILE $DESTFILE
else
echo "warning: src not found, "$SRCFILE
fi
# else
# echo "warning: file exists, "$DESTFILE
fi
}
if [ $RXLIB]; then
XLIB =$RXLIB
else
XLIB=.
fi
#==========freetds==========
slink $XLIB/freetds1.0/lib libct.so.4.0.0 libct.so
slink $XLIB/freetds1.0/lib libct.so.4.0.0 libct.so.4
slink $XLIB/freetds1.0/lib libsybdb.so.5.1.0 libsybdb.so
slink $XLIB/freetds1.0/lib libsybdb.so.5.1.0 libsybdb.so.5
slink $XLIB/freetds1.0/lib libtdsodbc.so.0.0.0 libtdsodbc.so
slink $XLIB/freetds1.0/lib libtdsodbc.so.0.0.0 libtdsodbc.so.0
#==========ocilib==========
slink $XLIB/ocilib/lib libocilib.so.4.3.0 libocilib.so
slink $XLIB/ocilib/lib libocilib.so.4.3.0 libocilib.so.4