[PATCH 1/3] check-doc-syntax: Make this work again

Uli Schlachter psychon at znc.in
Sun May 6 12:41:28 PDT 2012

Commit ed90616b77570 changed the way the awk script gets invoked. Due to a
missing "test", this resulted in the awk script never getting invoked at all.

Signed-off-by: Uli Schlachter <psychon at znc.in>
 src/check-doc-syntax.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/check-doc-syntax.sh b/src/check-doc-syntax.sh
index bfda7a2..c74fb87 100755
--- a/src/check-doc-syntax.sh
+++ b/src/check-doc-syntax.sh
@@ -71,7 +71,7 @@ if echo $FILES | xargs grep "$note_regexp" /dev/null; then
 fi >&2
 # Only run the syntax checker on the source files (not doc/)
-if -e ./check-doc-syntax.awk; then
+if test -e ./check-doc-syntax.awk; then
     if echo $FILES | xargs ./check-doc-syntax.awk ; then

Content-Type: text/x-diff;
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;

More information about the cairo mailing list