From 04d7ddb9da330539a3026cd26b4ba6d0ee82a395 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Wed, 30 Nov 2011 21:31:59 +0200 Subject: [PATCH 1/1] Replace == with -eq for numeric comparison --- projects/stargazer/plugins/Makefile.in | 2 +- stglibs/Makefile.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/stargazer/plugins/Makefile.in b/projects/stargazer/plugins/Makefile.in index 1389d9ef..6dd8d781 100644 --- a/projects/stargazer/plugins/Makefile.in +++ b/projects/stargazer/plugins/Makefile.in @@ -43,7 +43,7 @@ deps: $(SRCS) ../../../../../Makefile.conf @>deps ;\ for file in $(SRCS); do\ echo "$$file" | grep ".c$$" > /dev/null;\ - if [ $$? == 0 ];\ + if [ $$? -eq 0 ];\ then\ echo "`$(CC) $(CFLAGS) $(DEFS) $(SEARCH_DIRS) -MM $$file` Makefile ../../../../../Makefile.conf" >> deps ;\ echo -e '\t$$(CC) -c $$< $(CFLAGS) $(SEARCH_DIRS) $(DEFS)' >> deps ;\ diff --git a/stglibs/Makefile.in b/stglibs/Makefile.in index 8c97fae8..b768b163 100644 --- a/stglibs/Makefile.in +++ b/stglibs/Makefile.in @@ -58,7 +58,7 @@ deps: $(SRCS) ../../Makefile.conf @>deps ;\ for file in $(SRCS); do\ echo "$$file" | grep ".c$$" > /dev/null;\ - if [ $$? == 0 ];\ + if [ $$? -eq 0 ];\ then\ echo "`$(CC) $(CFLAGS) -MM $$file` Makefile ../../Makefile.conf" >> deps ;\ echo -e '\t$$(CC) $(CFLAGS) -c $$<' >> deps ;\ -- 2.44.2