]> git.stg.codes - stg.git/commitdiff
Replace == with -eq for numeric comparison
authorMaxim Mamontov <faust.madf@gmail.com>
Wed, 30 Nov 2011 19:31:59 +0000 (21:31 +0200)
committerMaxim Mamontov <faust.madf@gmail.com>
Wed, 30 Nov 2011 19:31:59 +0000 (21:31 +0200)
projects/stargazer/plugins/Makefile.in
stglibs/Makefile.in

index 1389d9ef3516a20c1dbcd3c81d242dde47fc465b..6dd8d781b8beeeb81ca5bc36af9078ddc7dbe668 100644 (file)
@@ -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 ;\
index 8c97fae8f1d60066a00c55958869c35a857b6147..b768b1638070dbabdd4657d221cfdb3e909a612b 100644 (file)
@@ -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 ;\