/usr/bin/ff-get-dep is in freefem++ 3.47+dfsg1-2build1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | #!/bin/sh
# ff-c++ `./ff-get-dep -ff metis.cpp`
case "$1" in
-dlib)
shift
awk -F: '/^[\/]+ff-c[+][+]-LIBRARY-dep:/ { printf("%s",$2); exit 0;}' $@
exit 0;
;;
-dcpp)
shift
awk -F: '/^[\/]+ff-c[+][+]-cpp-dep:/ { printf("%s",$2); exit 0;}' $@
exit 0;
;;
-ff)
shift;
# ajout de lib with check
libs=`$0 -dlib $@`
cpp=`$0 -dcpp $@`" $@"
;;
esac
dircommand=`dirname $0`
if [ -f "WHERE_LIBRARY-download" ] ; then
dircommand="./"
elif [ -f "$dircommand/WHERE_LIBRARY-download" ] ; then
dirwhere=$dircommand
elif [ -f '/usr/lib/ff++/3.47/lib/WHERE_LIBRARY-download' ] ; then
dirwhere='/usr/lib/ff++/3.47/lib'
else
echo " error no WHERE_LIBRARY file "
exit 1;
fi
cd "$dirwhere"
wherel=WHERE_LIBRARY-download
test -f WHERE_LIBRARY-config && wherel="$wherel WHERE_LIBRARY-config"
test -f WHERE_LIBRARY && wherel="$wherel WHERE_LIBRARY"
awk -f ff-get-dep.awk -v libs="$libs" -v cpp="$cpp" $wherel
exit $?
|