]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Use POSIX redirect, for portability.
authorKoop Mast <kwm@rainbow-runner.nl>
Sat, 18 Jan 2014 13:26:32 +0000 (14:26 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 18 Jan 2014 13:26:32 +0000 (14:26 +0100)
This fixes: "Syntax error: Bad fd number". on POSIX sh.

https://bugzilla.gnome.org/show_bug.cgi?id=722486

src/libvaladoc/Makefile.am
src/valadoc/Makefile.am

index 55bb6bab1c78f2e1d2f8494aeaf1cdcb9b992330..82caa0765b5972ea5713354054bb4f0211120031 100644 (file)
@@ -1,6 +1,6 @@
 NULL =
 
-DEFAULT_DRIVER = $(shell $(VALAC) --api-version >& /dev/null; if [ $$? = 0 ]; then $(VALAC) --api-version; else $(VALAC) --version; fi)
+DEFAULT_DRIVER = $(shell $(VALAC) --api-version >/dev/null 2>&1; if [ $$? = 0 ]; then $(VALAC) --api-version; else $(VALAC) --version; fi)
 
 AM_CFLAGS = \
        -DPACKAGE_ICONDIR=\"$(datadir)/valadoc/icons/\" \
index 1c443de0ac6da3407f2678c9e8b068b5438455f2..038b6e20c790d257d6c3ecf24f6660102d7be27c 100644 (file)
@@ -1,6 +1,6 @@
 NULL =
 
-DEFAULT_DRIVER = $(shell $(VALAC) --api-version >& /dev/null; if [ $$? = 0 ]; then $(VALAC) --api-version; else $(VALAC) --version; fi)
+DEFAULT_DRIVER = $(shell $(VALAC) --api-version >/dev/null 2>&1; if [ $$? = 0 ]; then $(VALAC) --api-version; else $(VALAC) --version; fi)
 
 AM_CFLAGS = \
        -DPACKAGE_DATADIR=\"$(libdir)/valadoc\" \