shithub: puzzles

Download patch

ref: d836b60dbedab16edb18024a26f8a25401592f4d
parent: a7f19c87a9d926cdb8a090d96bda4a6f853bfe18
author: Simon Tatham <[email protected]>
date: Tue Jan 16 07:54:24 EST 2007

Marcin Wojdyr points out that the use of `>&' to redirect both
stdout and stderr is non-standard. Switch to a POSIX-blessed
alternative.

[originally from svn r7116]

--- a/Recipe
+++ b/Recipe
@@ -102,7 +102,7 @@
 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 @@
 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; \