From 68ca6f52521f2f69e88e992f2d0788462e61a2d9 Mon Sep 17 00:00:00 2001 From: Ron Lee Date: Thu, 28 Oct 2004 02:00:23 +0000 Subject: [PATCH] Applied patch 1055774 from Paul Cornett for platforms without a posix /bin/sh. Among those reported as not yet expired are Solaris 9, IRIX 6.5, and Tru64 5.1b. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wx-config.in | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/wx-config.in b/wx-config.in index 8221b7a14f..129e2ae764 100755 --- a/wx-config.in +++ b/wx-config.in @@ -17,8 +17,25 @@ # Licence: wxWindows licence ############################################################################ +# We expect a posix shell, so if this is a Bourne shell, +# and apparently a few still exist, try for bash or ksh. -# Start with some basic stuff, like the ability to die gracefully, +if [ ~ = '~' ] +then + if (bash -c echo) >/dev/null 2>&1 + then + exec bash "$0" "$@" + fi + if (ksh -c echo) >/dev/null 2>&1 + then + exec ksh "$0" "$@" + fi + echo "$0: this script requires bash or ksh" + exit 1 +fi + + +# On with some basic stuff, like the ability to die gracefully, # and to tell people what we are about. # ------------------------------------------------------------------