Skip to content

Commit

Permalink
wmake: Simplified using -q option on grep
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Weller committed Dec 10, 2020
1 parent 0a053fc commit 66131bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wmake/wmake
Original file line number Diff line number Diff line change
Expand Up @@ -374,11 +374,11 @@ cdSource
if [ "$targetType" = "" ]
then
unset targetType
if grep -e '^ *LIB *=' "$MakeDir/files" >/dev/null 2>&1
if grep -q -e '^ *LIB *=' "$MakeDir/files"
then
targetType=libso
fi
elif grep -e '^ *EXE *=' "$MakeDir/files" >/dev/null 2>&1
elif grep -q -e '^ *EXE *=' "$MakeDir/files"
then
# Application. Remove any nonsense targetType
case "$targetType" in
Expand Down Expand Up @@ -436,7 +436,7 @@ fi
case "$targetType" in
lib | libo | libso | dep )
# ... but only if 'LIB' is declared in 'Make/files'
if grep -e '^ *LIB *=' "$MakeDir/files" >/dev/null 2>&1
if grep -q -e '^ *LIB *=' "$MakeDir/files"
then
$make -s -f "$WM_DIR/makefiles/general" MAKE_DIR="$MakeDir" \
OBJECTS_DIR="$objectsDir" lnInclude
Expand Down

0 comments on commit 66131bc

Please sign in to comment.