cyphesis/tools/scripts/check_libraries
2019-10-03 00:23:06 +02:00

16 lines
357 B
Text
Executable file

STATIC_LIBS=`grep "^ \+/.*\.a .$" server/Makefile.am | sed "s/ .$//"`
for lib in $STATIC_LIBS; do
#echo LIB $lib
dylib=`dirname $lib`/`basename $lib .a`.so
if [ -f $lib ] && [ -f $dylib ]; then
dylib=`readlink -f $dylib`
if [ $lib -ot $dylib ]; then
echo $lib is out of date.
ls -l $lib $dylib
true
fi
else
echo Missing: $lib
fi
done