]> granicus.if.org Git - graphviz/commitdiff
Corrected error printing in autogen.sh
authorErwin Janssen <erwinjanssen@outlook.com>
Fri, 10 Jun 2016 11:38:52 +0000 (13:38 +0200)
committerErwin Janssen <erwinjanssen@outlook.com>
Fri, 10 Jun 2016 11:38:52 +0000 (13:38 +0200)
Printing to standard error is done using '&' insted of '$'.

autogen.sh

index a6a04b8b3e2cb62d03a180a85c8a3b908717099a..a6c6d538b0f4707a696c126043ced9d94a043b16 100755 (executable)
@@ -8,7 +8,7 @@ if test $? -eq 0; then
         # try date with FreeBSD syntax
         GRAPHVIZ_VERSION_DATE=$( date -u -j -f "%Y-%m-%d %H:%M:%S %z" "$GRAPHVIZ_GIT_DATE" +%Y%m%d.%H%M )
         if test $? -ne 0; then
-            echo "Warning: we do not know how to invoke date correctly." >$2
+            echo "Warning: we do not know how to invoke date correctly." >&2
         else
             echo "Version date is based on time of last commit: $GRAPHVIZ_VERSION_DATE"
         fi
@@ -17,7 +17,7 @@ if test $? -eq 0; then
     fi
 else
     GRAPHVIZ_VERSION_DATE="0"
-    echo "Warning: we do not appear to be running in a git clone." >$2
+    echo "Warning: we do not appear to be running in a git clone." >&2
 fi
 
 # initialize version for a "stable" build