chiark / gitweb /
Marcin Wojdyr points out that the use of `>&' to redirect both
authorSimon Tatham <anakin@pobox.com>
Tue, 16 Jan 2007 12:54:24 +0000 (12:54 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 16 Jan 2007 12:54:24 +0000 (12:54 +0000)
stdout and stderr is non-standard. Switch to a POSIX-blessed
alternative.

[originally from svn r7116]

Recipe

diff --git a/Recipe b/Recipe
index 42618eb4b707d1434315735c7dc2a5488d6231a9..b2c6502ddd6a281f4eab9296b90ced9cf6319906 100644 (file)
--- a/Recipe
+++ b/Recipe
@@ -102,7 +102,7 @@ version.o: FORCE;
 FORCE:
        if test -z "$(VER)" && test -f manifest && md5sum -c manifest; then \
                $(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) `cat version.def` -c version.c; \
-       elif test -z "$(VER)" && test -d .svn && svnversion . >&/dev/null; then \
+       elif test -z "$(VER)" && test -d .svn && svnversion . >/dev/null 2>&1; then \
                $(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) "-DREVISION=`svnversion .`" -c version.c; \
        else \
                $(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) $(VER) -c version.c; \
@@ -117,7 +117,7 @@ version.o: FORCE;
 FORCE:
        if test -z "$(VER)" && test -f manifest && (md5 -r `awk '{print $$2}' manifest` | diff -w manifest -); then \
                $(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) `cat version.def` -c version.c; \
-       elif test -z "$(VER)" && test -d .svn && svnversion . >&/dev/null; then \
+       elif test -z "$(VER)" && test -d .svn && svnversion . >/dev/null 2>&1; then \
                $(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) "-DREVISION=`svnversion .`" -c version.c; \
        else \
                $(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) $(VER) -c version.c; \