aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gen-deps.sh
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2025-04-25 10:12:46 +0000
committerLaurent Bercot <ska@appnovation.com>2025-04-25 10:12:46 +0000
commit9d79ca45023c6e24534386ef7a52a0bad0396275 (patch)
tree2fe8d86224411a239e67499102de2695880a3889 /tools/gen-deps.sh
parent7cada88937b8f7edead691a462d3339834674ec9 (diff)
downloadexecline-9d79ca45023c6e24534386ef7a52a0bad0396275.tar.gz
Next iteration of dotpc, lots of fixes
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'tools/gen-deps.sh')
-rwxr-xr-xtools/gen-deps.sh6
1 files changed, 3 insertions, 3 deletions
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"