]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied patch 1055774 from Paul Cornett for platforms
authorRon Lee <ron@debian.org>
Thu, 28 Oct 2004 02:00:23 +0000 (02:00 +0000)
committerRon Lee <ron@debian.org>
Thu, 28 Oct 2004 02:00:23 +0000 (02:00 +0000)
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

index 8221b7a14fb813aa4f7eb3cb9f811e5fa1865172..129e2ae764aad309b4c230ba1c428d9dfb137d63 100755 (executable)
 # 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.
+
+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
 
-# Start with some basic stuff, like the ability to die gracefully,
+# On with some basic stuff, like the ability to die gracefully,
 # and to tell people what we are about.
 # ------------------------------------------------------------------