From: Maxim Mamontov Date: Wed, 30 Nov 2011 19:31:59 +0000 (+0200) Subject: Replace == with -eq for numeric comparison X-Git-Tag: 2.408~43 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/04d7ddb9da330539a3026cd26b4ba6d0ee82a395 Replace == with -eq for numeric comparison --- 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 ;\