[cairo-commit] boilerplate/make-cairo-boilerplate-constructors.sh test/make-cairo-test-constructors.sh

Chris Wilson ickle at kemper.freedesktop.org
Wed Sep 2 11:32:27 PDT 2009


 boilerplate/make-cairo-boilerplate-constructors.sh |    2 +-
 test/make-cairo-test-constructors.sh               |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 2c03dfa0b406565fca798214a842bac69b042017
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Wed Sep 2 10:09:50 2009 +0100

    [boilerplate/test] Use numerical equality not string equality
    
    test == != -eq

diff --git a/boilerplate/make-cairo-boilerplate-constructors.sh b/boilerplate/make-cairo-boilerplate-constructors.sh
index dd63111..09716ca 100644
--- a/boilerplate/make-cairo-boilerplate-constructors.sh
+++ b/boilerplate/make-cairo-boilerplate-constructors.sh
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-if test $# == 0; then
+if test $# -eq 0; then
     echo "$0: no input files." >&2
     exit 0
 fi
diff --git a/test/make-cairo-test-constructors.sh b/test/make-cairo-test-constructors.sh
index fdb84e9..cb1391e 100644
--- a/test/make-cairo-test-constructors.sh
+++ b/test/make-cairo-test-constructors.sh
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-if test $# == 0; then
+if test $# -eq 0; then
     echo "$0: no input files." >&2
     exit 0
 fi


More information about the cairo-commit mailing list