This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
PATCH: Pass SHELL to iconvdata/tst-tables.sh andiconvdata/tst-table.sh
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Thu, 25 Oct 2012 16:24:42 -0700
- Subject: PATCH: Pass SHELL to iconvdata/tst-tables.sh andiconvdata/tst-table.sh
Hi,
iconvdata/tst-tables.sh and iconvdata/tst-table.sh don't work with
zsh. This patch sets SHELL and passes it to iconvdata/tst-tables.sh.
Tested on x86-64. OK to install?
Thanks.
H.J.
---
* config.make.in (SHELL): New variable.
* iconvdata/Makefile ($(objpfx)tst-tables.out): Pass SHELL
environment to tst-tables.sh.
diff --git a/config.make.in b/config.make.in
index c22acf4..8cfd30e 100644
--- a/config.make.in
+++ b/config.make.in
@@ -133,6 +133,7 @@ MSGFMT = @MSGFMT@
# Script execution tools.
BASH = @BASH_SHELL@
KSH = @KSH@
+SHELL = @SHELL@
AWK = @AWK@
PERL = @PERL@
diff --git a/iconvdata/Makefile b/iconvdata/Makefile
index 2840cff..07e4076 100644
--- a/iconvdata/Makefile
+++ b/iconvdata/Makefile
@@ -304,6 +304,7 @@ $(objpfx)iconv-test.out: run-iconv-test.sh $(objpfx)gconv-modules \
$(objpfx)tst-tables.out: tst-tables.sh $(objpfx)gconv-modules \
$(addprefix $(objpfx),$(modules.so)) \
$(objpfx)tst-table-from $(objpfx)tst-table-to
+ SHELL=$(SHELL) \
$(SHELL) $< $(common-objpfx) $(common-objpfx)iconvdata/ \
'$(run-program-prefix)' > $@