RN rnmake  3.0.0
libdeps.sh
1 #!/bin/sh
2 # Package: RN Makefile System Utility
3 # File: libdeps.sh
4 # Desc: Build package library dependency list
5 # Usage: libdeps.sh libvpath libs...
6 # Example: libdeps.sh ../lib:../dist/dist-<arch>/lib common foo bar
7 #
8 # /*! \file */
9 # /*! \cond RNMAKE_DOXY*/
10 
11 libvpath=${1}
12 shift
13 
14 for lib in $*
15 do
16  IFS=':'
17  for libdir in ${libvpath}
18  do
19  if [ -f ${libdir}/lib${lib}.so ]
20  then
21  echo ${libdir}/lib${lib}.so
22  break;
23  elif [ -f ${libdir}/lib${lib}.a ]
24  then
25  echo ${libdir}/lib${lib}.a
26  break;
27  fi
28  done
29 done
30 
31 exit 0
32 
33 #/*! \endcond RNMAKE_DOXY */