#!/bin/sh
#@+leo

#@+node:0::@file FindROXCLibBin
#@+body
#@@first #!/bin/sh
#@@language shell

#first find the app directory of the library
paths="$HOME/lib /lib /usr/local/lib /usr/lib /usr/apps"
for x in $paths
do
  if [ -e $x/ROX-CLib ] ; then
    APP_DIR=$x/ROX-CLib
    break
  fi 
done


#now, build the directory stuff
ARCH=`uname -m`
case $ARCH in
	i?86) ARCH=ix86 ;;
esac
PLATFORM=`uname -s`-$ARCH

#and finally, print the final result
echo $APP_DIR/$PLATFORM/bin

#@-body
#@-node:0::@file FindROXCLibBin
#@-leo
