From 9d79ca45023c6e24534386ef7a52a0bad0396275 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 25 Apr 2025 10:12:46 +0000 Subject: Next iteration of dotpc, lots of fixes Signed-off-by: Laurent Bercot --- tools/gen-deps.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/gen-deps.sh') diff --git a/tools/gen-deps.sh b/tools/gen-deps.sh index 8e944d4..8d3c6cd 100755 --- a/tools/gen-deps.sh +++ b/tools/gen-deps.sh @@ -62,9 +62,9 @@ for dir in $(ls -1 src | grep -v ^include) ; do both= libs= while read dep ; do - if echo $dep | grep -q '^\${.*_LIB}' ; then + if echo $dep | grep -qx '\${.*_LIB}' ; then libs="$libs $dep" - elif echo $dep | grep -q '^-l' ; then + elif echo $dep | grep -q -e '^-l' -e '^\${LIB' ; then both="$both $dep" else deps="$deps src/$dir/$dep" @@ -91,7 +91,7 @@ for dir in $(ls -1 src | grep -v ^include) ; do if echo $dep | grep -q \\.o$ ; then dep="src/$dir/$dep" fi - if echo $dep | grep -q '^\${.*_LIB}' ; then + if echo $dep | grep -qx '\${.*_LIB}' ; then libs="$libs $dep" else deps="$deps $dep" -- cgit v1.3.1